ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.335309') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.364589') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.411521') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.417505') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (23.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.452511') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.456078') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KV49Sz6PGx7jZiHSPpaU"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (8.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.482618') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.486904') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.490772') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.496985') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.499541') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "EXdZbgzXycMwfuckJzNR"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.501844') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users"  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.518182') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.521359') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.523299') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.527154') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.530974') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.539074') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.548121') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "Sn1AuPaUxsyNTBDWZbzF"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.551639') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.555129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.557042') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.559969') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.562909') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.564803') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.567894') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.571267') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.575433') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.587059') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.593848') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.610418') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.616081') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.619981') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "k3fuvox2yZ9fqMoLQo6x"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.626767') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.633797') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.638851') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.3ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.648051') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iHz5W4Wy2cHHsjQXt66p"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.653027') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:09:41.656838', "reminded_at" = '2016-04-27 23:09:41.656838' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.663031') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.669431') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.678156') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.682477') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.685398') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.691377') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.694583') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.696903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.700749') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.710195') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.714190') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zWUKKTyagsLy3SqG3AyQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "zWUKKTyagsLy3SqG3AyQ"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:09:41.720410', "accepted_at" = '2016-04-27 23:09:41.720410' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.730114') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.737854') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jwgG2sRRUzqYLjoGXP6d"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.740969') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:09:41.744979', "reminded_at" = '2016-04-27 23:09:41.744979' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.750378') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.753462') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.757411') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.760073') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.765602') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.785335') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.790086') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.792413') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.794537') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.796886') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.800702') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.815778') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.819192') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "2F1jyimrrvGPhbCAgzv8"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:09:41.821617', "accepted_at" = '2016-04-27 23:09:41.821617' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.822519') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "users"  (0.5ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:09:41.833476') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "A5qF3exBeSsPW7Kfgyo9"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:09:41 UTC], ["updated_at", 2016-04-27 23:09:41 UTC], ["created_at", 2016-04-27 23:09:41 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.526520') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.549570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "y5LQWoFwRaC5q5TEN63B"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (2.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.569795') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.572775') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.576285') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.580482') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.583354') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "e9xVvk1xTXy8DzHK8p8v"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.585633') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:10:16.589464', "reminded_at" = '2016-04-27 23:10:16.589464' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.594518') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.597126') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Az3ExmQasxFqmVJVB7W9"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "Az3ExmQasxFqmVJVB7W9"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:10:16.600354', "accepted_at" = '2016-04-27 23:10:16.600354' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.605290') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.613323') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.621326') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.636872') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.642292') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (1.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.644894') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.651090') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.654684') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.660577') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.674045') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.678425') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.681273') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.687683') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.5ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.693985') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.699428') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.702819') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.710211') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.718107') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.721785') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.736997') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.6ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.743692') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "DjMDggGRKbNqxtdGnsix"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:10:16.751982', "accepted_at" = '2016-04-27 23:10:16.751982' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.753391') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.756390') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "x76buvtBx5kSyTq19qsy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.762427') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.766410') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.768040') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.771615') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.775390') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.785792') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.801453') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.806303') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.809644') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "nBowhpiVgvnyijpy43uN"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.812560') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:10:16.815134', "reminded_at" = '2016-04-27 23:10:16.815134' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.818515') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.823506') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.834046') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.838388') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.844658') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.851031') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.854825') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.863085') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.867908') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "9y5yiq54HSALRFqrZpdj"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.871876') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.878374') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.880776') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.883085') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.886361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.892733') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.901770') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.906538') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.909270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.912836') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.921211') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.9ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.926746') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "trqhRJUZxY9VYWJiEtse"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.934909') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.943887') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:10:16.947372') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "96m57YXoNrUA1KbyFJgL"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-04-28 23:10:16 UTC], ["updated_at", 2016-04-27 23:10:16 UTC], ["created_at", 2016-04-27 23:10:16 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (1.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ? [["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["value", "test"], ["updated_at", 2016-04-27 23:13:56 UTC], ["key", "environment"]]  (1.2ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='proposal_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='proposal_idx' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proposal_tokens_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proposal_tokens_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:13:57 UTC], ["updated_at", 2016-04-27 23:13:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.862090') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.878875') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.892297') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.901551') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.921422') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.923977') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.927237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.935089') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.940001') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.943764') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.947451') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.957109') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.963334') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.965295') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.968535') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "F22mAzsitedTsxxtCf3n"], ["LIMIT", 1]]  (0.3ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.979400') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.983123') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:57 UTC], ["updated_at", 2016-04-27 23:13:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:57.997079') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.005121') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.010000') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.015117') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.018652') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.024014') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.031925') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.043184') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.048753') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qcPExsZ4qQb3utBVtKsF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.052085') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:13:58.061616', "reminded_at" = '2016-04-27 23:13:58.061616' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.066901') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.070464') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.072057') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.074988') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.078677') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.082940') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.085918') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (1.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.089830') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.094538') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.100282') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.104409') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.113641') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.115973') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.119949') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.132480') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.138065') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "DqWk1kRS2uzPxq5QArmm"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:13:58.140383', "accepted_at" = '2016-04-27 23:13:58.140383' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.141242') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.144047') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "dLPibiUKGyvi7MFhgxdJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.151057') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.3ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.156917') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "g27nDvmszSq1LYDFm24B"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.164576') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:13:58.168130', "reminded_at" = '2016-04-27 23:13:58.168130' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.171940') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.175302') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.181579') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.7ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.183876') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oTsCeF1x5tYfPLfM6Vp3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "oTsCeF1x5tYfPLfM6Vp3"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:13:58.193431', "accepted_at" = '2016-04-27 23:13:58.193431' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.198968') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.202391') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.209150') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.211651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "5GD8fZqYCf5W4waX1zfg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.214102') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction  (1.5ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.222827') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.226132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.231423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.234916') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.243478') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.249180') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.253909') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.256393') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "zkEyD7qtvkeegQTwxkU3"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.263260') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:13:58.268522') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "JSNKzRUSPNKoEBDrBmXp"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-04-28 23:13:58 UTC], ["updated_at", 2016-04-27 23:13:58 UTC], ["created_at", 2016-04-27 23:13:58 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (1.4ms) rollback transaction  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (1.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProposalTokens (20121026005348)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "proposal_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar NOT NULL, "email" varchar NOT NULL, "proposable_type" varchar NOT NULL, "resource_type" varchar, "resource_id" integer, "proposer_type" varchar, "proposer_id" integer, "arguments" text, "accepted_at" datetime, "reminded_at" datetime, "expires_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.4ms) CREATE UNIQUE INDEX "index_proposal_tokens_on_token" ON "proposal_tokens" ("token")  (0.2ms) CREATE UNIQUE INDEX proposal_idx ON proposal_tokens ( email, proposable_type, resource_type, resource_id, expires_at, accepted_at )  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20121026005348"]]  (1.7ms) commit transaction Migrating to CreateUsers (20121026035505)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20121026035505"]]  (1.3ms) commit transaction Migrating to CreateProjects (20121031041439)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20121031041439"]]  (1.2ms) commit transaction ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ? [["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-04-27 23:14:24 UTC], ["updated_at", 2016-04-27 23:14:24 UTC]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='proposal_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='proposal_idx' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proposal_tokens_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proposal_tokens_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:25 UTC], ["updated_at", 2016-04-27 23:14:25 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:25.938447') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:25.955596') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qdxappTyuDTkVqzZF8N3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:14:25 UTC], ["updated_at", 2016-04-27 23:14:25 UTC], ["created_at", 2016-04-27 23:14:25 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:25.965614') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "users"  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:14:25 UTC], ["updated_at", 2016-04-27 23:14:25 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:25 UTC], ["updated_at", 2016-04-27 23:14:25 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:25.988766') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:25.991934') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "TWxgKg1zLvZ9Sxc9cfnN"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:14:25 UTC], ["updated_at", 2016-04-27 23:14:25 UTC], ["created_at", 2016-04-27 23:14:25 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:14:25.994345', "accepted_at" = '2016-04-27 23:14:25.994345' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:25.995477') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:25.997831') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "1rzxzag9q1kkWXcxwPRD"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:14:25 UTC], ["updated_at", 2016-04-27 23:14:25 UTC], ["created_at", 2016-04-27 23:14:25 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.005178') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.007369') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.009537') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.013807') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.016944') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.024645') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.026534') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.029409') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.033470') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.041112') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.043342') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.048984') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.051632') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "RQHx4q6cznHaV3ifTSYv"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-04-28 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC], ["created_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.056551') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.061922') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "oHUqZpxMPdQJoccDvJXq"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.073005') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.082025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "CZPhfujxVTD17kKr1L3d"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-04-28 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC], ["created_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.088590') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.091961') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.095319') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.114199') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (1.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.117484') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.125860') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.132308') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.135466') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.139246') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.142112') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "GCsEsgCPJzxDJarGQUU8"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC], ["created_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "GCsEsgCPJzxDJarGQUU8"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:14:26.146227', "accepted_at" = '2016-04-27 23:14:26.146227' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.151371') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.155496') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.158666') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.161781') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.164758') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.179268') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.182936') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.190713') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.195256') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.199786') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.206626') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.220762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.225366') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.227892') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.235649') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.242136') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.244636') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "w6JA24LbRJjz75isCvtp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC], ["created_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.247305') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:14:26.250565', "reminded_at" = '2016-04-27 23:14:26.250565' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.2ms) SELECT COUNT(*) FROM "users"  (2.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.263570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.265952') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tMQi5iQFJxZjkKzLPbyj"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-04-28 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC], ["created_at", 2016-04-27 23:14:26 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.268183') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-04-27 23:14:26.271315', "reminded_at" = '2016-04-27 23:14:26.271315' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users"  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.274685') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.278270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.281712') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.286211') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "users"  (0.3ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.296038') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.299050') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.301103') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.304902') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.313688') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.318179') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-04-27 23:14:26 UTC], ["updated_at", 2016-04-27 23:14:26 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.326387') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.0ms) SELECT COUNT(*) FROM "users" Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-04-27 23:14:26.329548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.7ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.137475') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "JepkGe2kd5xC24svFqPf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.167832') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.179846') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.188952') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iMa2vjMUKh1JoMry6mp1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.192889') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:13.196417', "reminded_at" = '2016-05-09 23:45:13.196417' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.202325') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.205597') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XV3qjXsmpsDacSJMs7aV"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.208490') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:13.214530', "reminded_at" = '2016-05-09 23:45:13.214530' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.217449') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.219912') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KhKokLkhzXAU23GiJerB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.225426') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.227325') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "H98HqLFQzrWHpfyJ7gtS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.229854') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.241430') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.243165') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Ucn7XStHyPN9tdof7V1p"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:13.246802', "accepted_at" = '2016-05-09 23:45:13.246802' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.248351') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.252202') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "UYTD3XGLBcZvVf9bwstk"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.265236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.267198') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "xdkXg6xZqqN3V1ycmZYg"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.272132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.273890') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fN7KkppqT8MBD6xoV4VF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:13.276156', "accepted_at" = '2016-05-09 23:45:13.276156' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.280339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.282051') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.284656') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.287341') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.289713') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "X7CszDvYxnrC4MfJyzBF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.296544') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.298909') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "SBaR83YAkxvKjUE882nd"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "SBaR83YAkxvKjUE882nd"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:13.302782', "accepted_at" = '2016-05-09 23:45:13.302782' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.308196') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.313115') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Vp52LgDhpnqke3uwwGdk"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.317207') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.318888') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "xQ4rAxAfFXyB3yyGMCU3"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "xQ4rAxAfFXyB3yyGMCU3"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.323455') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.325395') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "ZPaGZQizYzNKzqFjtzCF"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "ZPaGZQizYzNKzqFjtzCF"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.330929') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.332521') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.337559') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.342420') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.346830') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.348501') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qHczX9xo3gLE9q7yjszy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.352271') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.354148') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "U2htVR8bkM6WoW1wnxJm"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.357180') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.362647') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.364763') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.366293') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.367762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tYDkoZXBZcyVSxFsSU6m"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.371497') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.373067') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.374488') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.377004') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.378827') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KKPpGfjMQyc9D7BkwcMc"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.382859') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.384792') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ZN1aumVzGCCrndxJjpD6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:13.386994', "accepted_at" = '2016-05-09 23:45:13.386994' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.390784') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.396023') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.397990') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.400013') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.402314') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.404976') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.407050') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.409150') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.411525') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xB7yWxbjpEaMa8DAdyTQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.415010') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.423159') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.3ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.431070') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.432996') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.436790') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.439123') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:13.440974') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6FnUqAShvBg7n2PN5Ywx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:13 UTC], ["updated_at", 2016-05-09 23:45:13 UTC], ["created_at", 2016-05-09 23:45:13 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:13.443895', "accepted_at" = '2016-05-09 23:45:13.443895' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.316381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.334566') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "iposPwvF2HHvXsGiYtAn"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "iposPwvF2HHvXsGiYtAn"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.347046') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.348759') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.371100') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.372932') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "wLRkRkBZbwu6pTLtQ7ox"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:32.375711', "accepted_at" = '2016-05-09 23:45:32.375711' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.377324') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.379401') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "HsaH4KMsJP2z7Wap8kD4"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.384261') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.386254') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.389069') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.6ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.400600') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.403188') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yFjgX9d2PbbD7r7RUfLE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "yFjgX9d2PbbD7r7RUfLE"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:32.408634', "accepted_at" = '2016-05-09 23:45:32.408634' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.412002') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.414569') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cDAtYzbodqz8UKXkAC43"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.419596') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.421937') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cziycsce74YG4QdDKoTW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.427341') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.431773') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.434027') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "hPMfoJya46qpanp95WR8"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.439392') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.441062') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "146zxBx7rRzSrmyBhF9P"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:32.448198', "accepted_at" = '2016-05-09 23:45:32.448198' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.453069') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.454584') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gkM8EzXHkKZUiqdq8suk"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.456588') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:32.458987', "reminded_at" = '2016-05-09 23:45:32.458987' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.464664') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.466517') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VrwyCSpbJFjn8ynAVWd6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.468922') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:32.471149', "reminded_at" = '2016-05-09 23:45:32.471149' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.473958') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.476567') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rgqEEoqqyZnCdURS2qQS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:32.478994', "accepted_at" = '2016-05-09 23:45:32.478994' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.481611') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.485548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oQuzWXAaYGYSzZzofENx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.488107') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.490236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.491966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.495920') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.497669') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oVzzgrFYYUEFp6nGCuHm"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.504818') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.506546') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "spDbDNNz6bLqnMDqHBf4"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.511265') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.513917') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.515620') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.517200') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.518685') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.520544') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "GbCsY7dMHzsnM7zkA6sy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.522928') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.533909') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.536202') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.539715') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.541843') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "WeLh6qqsARZQ1pa6pyoT"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.548674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.550653') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yFb5aypxasvXHBmFsymR"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.552818') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.559884') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.564596') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.566513') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rsovFkm3JHsby47oFcCp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.571914') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.574305') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.576361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "dV6kBpFraWi9Z93ZxWPx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:32.579456', "accepted_at" = '2016-05-09 23:45:32.579456' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.584946') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.586443') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.588109') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.593214') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.595178') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HoodWaBeyGnq93ARDHcq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.597523') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.603452') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.606758') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.610762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.613672') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "zsqPMenD4YMy6qpodsDR"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-10 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC], ["created_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "zsqPMenD4YMy6qpodsDR"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:32 UTC], ["updated_at", 2016-05-09 23:45:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:32.621402') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.195101') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.221737') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.238101') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.241262') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.249480') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TmSUr5ZE9cxuquWx1VCo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:46.252390', "accepted_at" = '2016-05-09 23:45:46.252390' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.257693') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.259550') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "aX4n3vDwEFb9DUzLCiKz"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.262502') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.272959') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.276183') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "8fvRRphiZXsnoMyCMUTe"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.282509') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.284187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "cDRN2Zyx3x23q8PpMPic"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.286098') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.290648') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.292684') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VnWVM2UKedpmmdG7YXuf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "VnWVM2UKedpmmdG7YXuf"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:46.296208', "accepted_at" = '2016-05-09 23:45:46.296208' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.298609') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.300385') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "8TSmsGTGrcRC4g42fXDm"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.303598') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.305170') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.308068') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.309930') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.311467') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XKspnqTr9G8hCxksTT5T"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.314555') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.316858') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.321998') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.324454') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "xtJzD3StB2q3YaKC6szF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.329730') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.331624') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iGrE7vFabxqVVENXNZxg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.335101') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.336745') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.338162') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.339985') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "WqY2AfV2Nj7duoepw8qs"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "WqY2AfV2Nj7duoepw8qs"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.350345') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.352176') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.354653') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.357078') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "9xRepAjixWfDNtp89yCp"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "9xRepAjixWfDNtp89yCp"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.367325') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.373485') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.378738') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "HpQxydao4as48VKzNTrt"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:46.382821', "accepted_at" = '2016-05-09 23:45:46.382821' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.384186') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.386526') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "aqLH9qzLQxawtks5xt3N"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.391509') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.393497') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "LEsnBohQ1yfSnf5fVUsF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.395666') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.401452') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.403937') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "m2wwYwGzR7mi5tCFkWUf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:46.407250', "accepted_at" = '2016-05-09 23:45:46.407250' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.414260') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.415981') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mH7TiBMdUmxXarsB7FsB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.418127') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:46.419786', "reminded_at" = '2016-05-09 23:45:46.419786' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.422540') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.424458') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MpSWBBe7E5mzNvdBJwme"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:46.427262', "accepted_at" = '2016-05-09 23:45:46.427262' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.431487') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.432774') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.434159') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.435924') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.437600') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.441106') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qztHEWHeB4eFnP6rzVyS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.444068') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.448721') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.450734') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "WDDJqFh7YqhrLdwecwPJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.453252') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:45:46.456079', "reminded_at" = '2016-05-09 23:45:46.456079' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.460573') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.463284') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.465461') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.469944') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.472634') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.475935') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.477708') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "DVcwDWMKCj7j663t8jro"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.484854') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:45:46.486680') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "kAPPGeZqvyPo7e6paggj"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-10 23:45:46 UTC], ["updated_at", 2016-05-09 23:45:46 UTC], ["created_at", 2016-05-09 23:45:46 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.629675') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.649132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "CgzCvy6jrMG1PDCBT4Mg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:55:45.658405', "accepted_at" = '2016-05-09 23:55:45.658405' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.683440') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.685768') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "MPiqCzDMDoxLN7xwJz9W"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:55:45.688099', "accepted_at" = '2016-05-09 23:55:45.688099' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.688863') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.690291') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qZ3sB1dXiCLnDZM4QpBP"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.697463') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.700075') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (1.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "i1uSxsnii9PAcaiwhzri"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.709769') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.711941') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1bNZgcsdUtp8RCHjWQEs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.717726') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.719873') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ZvvPNsMzhBohiZqDFwbf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "ZvvPNsMzhBohiZqDFwbf"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:55:45.723793', "accepted_at" = '2016-05-09 23:55:45.723793' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.726501') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.728286') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.731422') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.735603') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.738046') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.739914') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.742321') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.745475') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.747434') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.749161') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.752546') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.760602') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.762075') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.764320') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.768254') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.770076') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "keyk3V7rDCkTbP76xs93"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.772397') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:55:45.774351', "reminded_at" = '2016-05-09 23:55:45.774351' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.776972') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.780816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.782965') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jzqUv3c4Eq7DmoBg8jS8"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.785754') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:55:45.790730', "reminded_at" = '2016-05-09 23:55:45.790730' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.794835') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.796423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "x1V7wyzmAwwYmu84vu8i"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.798721') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.802379') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.804538') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "CGm8yFWKNz86GQpS5H9Y"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.806721') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.813633') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.816798') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.818572') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.820225') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.821831') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cizYsBx5GTDLDhpzyswU"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.825830') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mnqfSxGy3qWbM7Cj2uxa"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.828911') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.832049') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.834533') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HxYsqJWY4vgozLk3GVF3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.840767') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.842724') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "An1vqdLVTasaMQbq31dD"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "An1vqdLVTasaMQbq31dD"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.849543') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.851442') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "LF82HzEmUjt6XeSpGP6J"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.857400') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.860259') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "QCoVHZdRm2W4Qtdp5s4R"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.863082') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.865860') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.868182') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "woyNAHtCWTd6nKyJVAwH"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "woyNAHtCWTd6nKyJVAwH"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.876433') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.877999') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.881050') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.882857') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.888011') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.890396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "xLUyxqejXcXpPwymJZMH"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.896337') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.898441') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "952NcxhCbhYxJGyirzhK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:55:45.901369', "accepted_at" = '2016-05-09 23:55:45.901369' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.904728') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.906685') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ysNH2rQefnLXk65v6TqB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.912154') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.915732') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Vs6NoShyz34CNwb5nM1L"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC], ["created_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:55:45.920761', "accepted_at" = '2016-05-09 23:55:45.920761' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:55:45 UTC], ["updated_at", 2016-05-09 23:55:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:55:45.930172') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.542537') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.560847') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yABRgwrKzwDBExQF9Ktk"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.574221') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.578795') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.590605') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.595137') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.603174') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.607140') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.608749') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "tommDLZkf5jcpQnGqb7z"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.611920') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.614218') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "LEQxjcFagLPdwsqTkdhR"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.616955') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.4ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.624779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.626541') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MDRE38gsQBBzZZpkKnjq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.628643') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.635819') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.638356') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.640133') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "TyZaY7prqyZoeSW5hqvz"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "TyZaY7prqyZoeSW5hqvz"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.645654') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.647443') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "56zbenrq5GmRxVVGvytH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.649423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.655410') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.657586') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pXyVhfUWqLaSjW1cYskD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:56:36.660203', "accepted_at" = '2016-05-09 23:56:36.660203' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.664821') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.666640') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.668361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.672978') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.675912') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qsJ2pT6URtmtBU8hZsxg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:56:36.678315', "accepted_at" = '2016-05-09 23:56:36.678315' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.681308') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.683466') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "5sfdeyze5HLbzgphyzs6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.686893') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.689785') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.692020') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9bwxdozXqkzqsyGPMtzb"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.697849') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.699773') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "K3jEpAjMy8TqjDmBS3og"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.709776') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.711826') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "hAVKHKmorvqrxEFSc91Z"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.714138') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:56:36.716008', "reminded_at" = '2016-05-09 23:56:36.716008' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.723908') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.729440') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "9LZSqszieSTikfYWgsY7"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.739317') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.741211') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "BKxhM88dda8de2yL89et"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "BKxhM88dda8de2yL89et"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:56:36.744404', "accepted_at" = '2016-05-09 23:56:36.744404' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.747236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.749177') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.750748') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.752608') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.754234') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.756391') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.758485') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "z7fxf68KRXFmyRYc3p8z"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "z7fxf68KRXFmyRYc3p8z"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.767556') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.769375') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "XmmD3xVLoSznpzV1cMpf"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:56:36.772622', "accepted_at" = '2016-05-09 23:56:36.772622' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.773820') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.775393') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ZKUSSzcW6TV8K75gKnRu"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.779151') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.781021') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.783173') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.784767') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "SnszdGoKwJ8XySHsqWet"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.791242') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.794474') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.797181') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.798855') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.801595') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "35CY2qi9o3cfCQouZ9N4"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.804452') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.806686') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.808555') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "L5Vo7hU6xB3wDHzppj3n"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:56:36.810897', "accepted_at" = '2016-05-09 23:56:36.810897' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.814126') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.816354') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-09 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.820222') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.823947') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "URTixnrLs7FKN4E4yXis"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-10 23:56:36 UTC], ["updated_at", 2016-05-09 23:56:36 UTC], ["created_at", 2016-05-09 23:56:36 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-09 23:56:36.826132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-09 23:56:36.827954', "reminded_at" = '2016-05-09 23:56:36.827954' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.762891') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.787129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.790281') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "38vzyFyGbmHQMttQbD6X"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:06:23.800984', "accepted_at" = '2016-05-10 00:06:23.800984' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.804474') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.809333') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.811651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "SkfxMwV8wkTcNtTwyhsV"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.818245') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.819848') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "771gXofGwzs4irJzgyJx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.822911') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:06:23.825892', "reminded_at" = '2016-05-10 00:06:23.825892' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.831088') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "bVXL2jsjidGzqPLHCtty"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.834778') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.839193') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.841096') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.842950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.853171') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.855327') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "4vtuMhWpdt1xHzcTvSHd"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:06:23.858101', "accepted_at" = '2016-05-10 00:06:23.858101' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.859063') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.860689') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "cz1hR2Ym8rZDfhbAxC2v"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.864891') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.867320') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.869335') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.870859') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.872336') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "JoFepo2mfdguDnLwpEzb"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.877079') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.879105') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XhapdsKfVyyNxJMKxZpD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "XhapdsKfVyyNxJMKxZpD"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:06:23.884716', "accepted_at" = '2016-05-10 00:06:23.884716' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.888895') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.890689') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "t8dUFW1p3xgVaTMbYKVq"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.893952') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.895658') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "m4V21vxF5LcjcGsywbFY"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.898253') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.901009') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.903594') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.905401') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.907090') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.908586') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "tiUiByAEPXXkX7kLsLJN"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "tiUiByAEPXXkX7kLsLJN"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.915174') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.916945') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VSwfyGqoD8PTKoCmNWLx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.918918') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.925588') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.927226') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.928627') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.930588') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cpntv6TpPsJikvbqJ5vg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.936525') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.939060') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.943019') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.944819') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Ryrh2maqJQ42zAqxJ8t7"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.950068') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:06:23.952994', "reminded_at" = '2016-05-10 00:06:23.952994' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.956118') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.958811') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "LfZEDwzyTQB1mQEKvELs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.964688') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.970591') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.973782') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.975606') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "L18s1nArbFA2Bm9Lbnbp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.985180') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.987005') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "UWQywKPPZoKUKqM7Jtt7"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.991360') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.993019') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "EmdCZ4fXfP9pWyTpfwHb"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-11 00:06:23 UTC], ["updated_at", 2016-05-10 00:06:23 UTC], ["created_at", 2016-05-10 00:06:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "EmdCZ4fXfP9pWyTpfwHb"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:23.999560') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.001577') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uoNCCMvYTTnuUpDGr1qy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:24 UTC], ["updated_at", 2016-05-10 00:06:24 UTC], ["created_at", 2016-05-10 00:06:24 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:06:24.003895', "accepted_at" = '2016-05-10 00:06:24.003895' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.007437') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.009487') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.011168') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.012938') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:06:24 UTC], ["updated_at", 2016-05-10 00:06:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.018866') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.021730') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HwfFnpjoJcAyZMpHKD2v"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:24 UTC], ["updated_at", 2016-05-10 00:06:24 UTC], ["created_at", 2016-05-10 00:06:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.025711') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.029855') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.033305') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PsuKEhviVq7daeqPAUsH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:06:24 UTC], ["updated_at", 2016-05-10 00:06:24 UTC], ["created_at", 2016-05-10 00:06:24 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:06:24.036094', "accepted_at" = '2016-05-10 00:06:24.036094' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.038986') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:06:24.040826') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.611976') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.638726') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.640688') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fJpyCHtrqFQy8uzN6qix"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.651866') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:07:59.653787', "reminded_at" = '2016-05-10 00:07:59.653787' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.657777') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.659125') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.660598') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.665052') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.668291') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.671143') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.673608') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oybqQqMWypNdsNpmcLy7"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.678275') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.680046') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "65crsNYucuk9aZYMfqZK"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "65crsNYucuk9aZYMfqZK"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.685990') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.688128') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pep7XkBFq6x2Nhpuj3Rq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:07:59.690559', "accepted_at" = '2016-05-10 00:07:59.690559' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.693653') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.696723') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "xTsuZSv4VMQiH9LVkzap"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "xTsuZSv4VMQiH9LVkzap"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.704286') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.705798') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.709627') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.711473') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "m6P5KUPcbPqzg4jacse1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.713984') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:07:59.715830', "reminded_at" = '2016-05-10 00:07:59.715830' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.727436') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.730201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "QFApyVshqMsYwsZwd5vu"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:07:59.732737', "accepted_at" = '2016-05-10 00:07:59.732737' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.733536') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.735244') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "BWEVvqyCiTPGqxqTwwVz"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.740920') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.743651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.745142') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.750234') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.755579') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.761747') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.763810') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "zi5t9zez2AkikpCXUa21"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.769309') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.771044') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.773938') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.776103') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "zg4zmCpHsm9DEf3WSXV1"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.783447') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.785247') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "MyeAnuzxggwH9WL9HdxV"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.787681') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.790258') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.793780') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.795762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "GW9ypbDLuwVEWadQ8Jim"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.801338') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.803027') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "geqZhSLk2EnRZym9JtSw"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.807733') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.809419') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "SNysQPpPVsAoGnQoz8cC"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "SNysQPpPVsAoGnQoz8cC"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:07:59.812686', "accepted_at" = '2016-05-10 00:07:59.812686' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.815069') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.816913') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.818342') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.819972') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "DMDeyyszyfNDwqdzRgbL"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.823251') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.825149') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.827491') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.832992') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.836653') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Xq8G63u2seWLxvzxqFq2"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.841305') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.844610') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.847197') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PL7bzo856vQqsVpNgDSZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:07:59.850912', "accepted_at" = '2016-05-10 00:07:59.850912' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.858353') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.860590') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zcUSoBKopBNtYknURkfq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.866448') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.869432') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "wqLexmML9VSaSGjkDcKp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.872101') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.882619') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.884661') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pmYVd7oXp7sAFs3Nu6Gp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.886985') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.890560') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.892372') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "H7XqUqCPUsL7tNbd8Hxq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC], ["created_at", 2016-05-10 00:07:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:07:59.895094', "accepted_at" = '2016-05-10 00:07:59.895094' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:07:59 UTC], ["updated_at", 2016-05-10 00:07:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:07:59.901760') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ? [["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='proposal_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='proposal_idx' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_proposal_tokens_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proposal_tokens_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.044219') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.063006') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yhVFtNGFH3tKvPeNtmPF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.074275') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.076674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.078523') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.082649') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "vxE2xPzsdcXmLyaqjTgR"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "vxE2xPzsdcXmLyaqjTgR"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.092894') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.108321') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.110348') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "xj7YFkQmfGQxZKKhSd8o"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.114368') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.116101') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "pvyPv3sXjszqAUDzrqK1"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.119037') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.122575') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ppsuVU5YsNtMdnvZacxG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.126563') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.131670') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.134966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "U8pxJxsq5QxRYo7nHAGg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.140124') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.142682') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "EdpXzpgzvxMdbNVx2MpG"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "EdpXzpgzvxMdbNVx2MpG"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.152677') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.155168') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "YhWcd2Y65Y5wNeqpFYx6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.158155') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:08:23.162073', "reminded_at" = '2016-05-10 00:08:23.162073' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.175186') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.177996') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qYhhVrBDEyHQTPnNHYxD"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.189897') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.194483') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.197646') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.201204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.204898') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.207337') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Y3iV77rP5sRwWqg4hbuy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.211098') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.222222') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.225046') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "hVFMMqZjc5A59SoqvngR"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (20.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.254793') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.258358') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Mj97ZT6SSXhAg1rTK8z2"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (17.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.283821') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.286869') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qyjp6xjZaoqWCif9XJhL"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.297513') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.301346') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.303709') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.306423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "NGnhZesxNKYTThzTj2kX"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:08:23.309186', "accepted_at" = '2016-05-10 00:08:23.309186' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.313791') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.315451') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6LypqryghsWPxannzhgu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.317668') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:08:23.319941', "reminded_at" = '2016-05-10 00:08:23.319941' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.322808') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.329662') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.331852') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ZqUaxmMqPu9UadeZhesF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:08:23.334972', "accepted_at" = '2016-05-10 00:08:23.334972' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.335998') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.337674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "v9toPqLyghvaXRJtuAsh"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.343326') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.345816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6YZK8aVXPywPz9WDKp9w"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:08:23.351551', "accepted_at" = '2016-05-10 00:08:23.351551' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.356435') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.358835') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.360318') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.362396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.364657') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.366444') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.368232') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.369817') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "aXgUFjBygGq31P2UkG8r"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:08:23.372172', "accepted_at" = '2016-05-10 00:08:23.372172' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.377207') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.380002') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.384324') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.385743') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.387461') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.392139') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.398033') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ncyHqyo6r8nPqqZKMwp5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "ncyHqyo6r8nPqqZKMwp5"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:08:23.404405', "accepted_at" = '2016-05-10 00:08:23.404405' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.408938') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.410695') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "eSqeoCdpNzgpVWshcTWE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:08:23 UTC], ["updated_at", 2016-05-10 00:08:23 UTC], ["created_at", 2016-05-10 00:08:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.413728') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (2.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.420585') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:08:23.422368') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ? [["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='proposal_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='proposal_idx' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proposal_tokens_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proposal_tokens_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.030718') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.048977') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.056058') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.058641') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "r8z1ExAG5KzcfW7t4jeS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.063923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.067520') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.070221') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.081083') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.086513') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "kHk3sYKsMwYrY52pBtXu"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.090472') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.094123') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yF5xCbpy2prSs5zkX7ps"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.096451') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.102853') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.107037') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.108651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Xsi6Cw6qyED5xsPmTTAG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.114600') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:10:23.117468', "reminded_at" = '2016-05-10 00:10:23.117468' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.120174') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.122042') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "yupdbcN9RxygtfivYz6s"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "yupdbcN9RxygtfivYz6s"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.128641') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.130657') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "orwwMAVzHEabpv1NRBJA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.136764') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.138680') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.141154') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.142685') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.148654') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.151506') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "877ViF88c9xhULq7FUae"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "877ViF88c9xhULq7FUae"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:10:23.156737', "accepted_at" = '2016-05-10 00:10:23.156737' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.159357') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.162039') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KCkSKM1xt92NHC1vV8yh"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.164876') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.175919') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.185396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.189541') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.191574') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.194719') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.198117') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "SifnCakfSpJ56phLKzrj"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:10:23.202438', "accepted_at" = '2016-05-10 00:10:23.202438' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.210865') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.215883') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "WFrmGYF5PPEo4CEPaaTy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.222085') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.225278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.228876') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "jUrA4qbKqDrGWWCh6SBQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "jUrA4qbKqDrGWWCh6SBQ"], ["LIMIT", 1]]  (14.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.252401') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.255870') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.258847') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.263585') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "sjAfqspUSFK2AVVTPqpT"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:10:23.266308', "accepted_at" = '2016-05-10 00:10:23.266308' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (11.5ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.285582') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.288556') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.292217') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (2.3ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.302682') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.305138') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "GVUW8pyhJ2erVRYmp7pK"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:10:23.308619', "accepted_at" = '2016-05-10 00:10:23.308619' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.309895') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.312329') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Nd2mCXyxTseNXh51epoB"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.320703') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.323205') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qTyoqFMqsxispg6zjyCy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.325536') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.331434') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.333241') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "vwmj1zEvPdYecqV8Ewqy"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.340127') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.341856') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "nZBZhyX2xZXBqHxET7U2"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.343907') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:10:23.348762', "reminded_at" = '2016-05-10 00:10:23.348762' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.351464') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.353299') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "eqbqApXHFWnzxveq1uhq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:10:23.355447', "accepted_at" = '2016-05-10 00:10:23.355447' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.358109') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.359966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.361531') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.363489') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "E4qejgs5YRxnHFhgoA2x"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.366725') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.368379') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "szBzosFkZ62qY2GfahQi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.372659') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9McJezzSFE7QzD4iRyb3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-10 00:10:23 UTC], ["updated_at", 2016-05-10 00:10:23 UTC], ["created_at", 2016-05-10 00:10:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.376155') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:10:23.380676') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.102230') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.120851') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pLtFHVEm2kEFsTACscuq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.131133') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:13:45.133361', "reminded_at" = '2016-05-10 00:13:45.133361' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.136454') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.138278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.140311') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.142982') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "WSyMx6yohos3bgzoQPyQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "WSyMx6yohos3bgzoQPyQ"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.154621') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.156288') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.159885') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.161416') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zEwPPcj8ZSdjMJYzwfsS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "zEwPPcj8ZSdjMJYzwfsS"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:13:45.164698', "accepted_at" = '2016-05-10 00:13:45.164698' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.167074') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.168592') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.170898') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.174717') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.179541') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "GJieDhm7zabXCs8e5hCJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:13:45.183261', "accepted_at" = '2016-05-10 00:13:45.183261' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.186812') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.188617') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PPWQzB5A4qx2tU9f2Yy6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.192821') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "7NXwqhzCpJkyNdjsX3GZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.196853') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.199755') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.201570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pqEZnkVy8z27tzUqUghq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.205278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.207624') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xs4TwsdaACxjqJ9fUwnD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.212208') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.214405') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "A5Wm83ufNHjxh55ftaCE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.216729') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.232352') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.234623') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ioZWPdCyyMkZzB1LNiuM"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.239237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.241731') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "V3mp6TQdBD5S7yTTUQxr"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.244023') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.246666') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.249142') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MRN61PGmZmxRMMg8snwp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:13:45.251727', "accepted_at" = '2016-05-10 00:13:45.251727' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.257793') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.263186') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.264911') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.267984') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.270502') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.272886') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.277789') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.279395') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Zus52dzLVxXgWrZSHFsw"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.283282') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.285477') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "zwEUafHk2xyjhMfUjeQB"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "zwEUafHk2xyjhMfUjeQB"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.291088') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.295361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "njfjhyYtnzBzq1tgY4EG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:13:45.297945', "accepted_at" = '2016-05-10 00:13:45.297945' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.300656') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.302615') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.304207') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "A6TuFUYs5ocDJn81a4Y7"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.309449') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.311822') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qh4JpbYHzerZ12orcdpC"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.318252') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.319907') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.323398') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.324810') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.329232') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.333125') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.335187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.338638') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.342945') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.344555') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XiXqzz5xW5gWPdGcPnVR"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.346548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.353424') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.355391') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "kG14zy864PrQ6VyPLTme"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:13:45.358060', "accepted_at" = '2016-05-10 00:13:45.358060' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.359131') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.360877') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "MSWfDgkoDvXYV82f6Lbx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.364662') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.369176') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.370729') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "WRGR3TSKSypod5SP5zhX"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:13:45 UTC], ["updated_at", 2016-05-10 00:13:45 UTC], ["created_at", 2016-05-10 00:13:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:13:45.372815') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:13:45.374758', "reminded_at" = '2016-05-10 00:13:45.374758' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.224765') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.244224') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iNPKZXsCfGHgV5pBE52V"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.271172') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.273992') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (1.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.276851') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "wxxozdF7VijMYUZepYVE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:14:23.284830', "accepted_at" = '2016-05-10 00:14:23.284830' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.287706') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.289733') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.292063') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.297732') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.299661') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.301893') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.306600') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.315086') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.317020') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "RYej4tv7yJyxrcD2VUhi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "RYej4tv7yJyxrcD2VUhi"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:14:23.321456', "accepted_at" = '2016-05-10 00:14:23.321456' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.323944') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.326097') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ZxaymqPjFD1th7xuh3J9"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.329690') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.331311') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.335013') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.336527') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XzZLVQkpKDMvsvsqgTbC"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.338651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:14:23.341109', "reminded_at" = '2016-05-10 00:14:23.341109' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.348086') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.349713') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.351201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.352703') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TV1aLf4QdZVJ1FLtuqtU"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.355936') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.358370') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.359980') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.362722') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.364521') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FcEF4wJqvJMjCVVsGJnx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.367930') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.373765') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.375417') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rvvM3NuT2pXT8bHg2sA6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:14:23.378822', "accepted_at" = '2016-05-10 00:14:23.378822' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.387581') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.389969') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "8q2jmZZtyuq7hphVnZoC"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.397357') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.398834') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.400459') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.401946') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "zziKCGWf8Yx7DgQ1svBG"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "zziKCGWf8Yx7DgQ1svBG"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.408740') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.410820') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "dVwpsbsWXQio3AZJ6HDW"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.415240') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.417422') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "zUM7HYQpbe9yjH6jzMAC"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.420881') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.429446') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.431818') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "CoSC1Vg9Rw7YzfapLgTK"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:14:23.436667', "accepted_at" = '2016-05-10 00:14:23.436667' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.438021') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.440157') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "37XQVcixcsyfpAh2i3pm"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.445990') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "b2Td549XMcY4YNgKvsqs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.449179') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.452184') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.454570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Z4LxEqMzqapShQp3vpyV"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.461342') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.463136') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FXM5Q4K5poWPLzpR1pSZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.465328') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.468814') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.470387') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.471885') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.473525') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "z6zvT8rQrWSQYNP547Ts"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "z6zvT8rQrWSQYNP547Ts"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.481145') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.483032') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fRr4qyYq9JkdGu9Se3Wx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:14:23.485510', "accepted_at" = '2016-05-10 00:14:23.485510' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.489841') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.492178') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "eCD5waoZpSUAHbuqKZbg"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.499485') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.501304') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "UA4VafGGSzuLLn5pgksp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-11 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC], ["created_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.503750') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-10 00:14:23.506152', "reminded_at" = '2016-05-10 00:14:23.506152' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.510905') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.514390') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-10 00:14:23 UTC], ["updated_at", 2016-05-10 00:14:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.519326') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-10 00:14:23.521531') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.019067') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.050030') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "pTiCq3gvp9tGW73txzer"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.079403') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.081764') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qLbv2FGAJnrL4zkEoXds"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.086201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.087884') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.089593') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.091403') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "f7zqzUi2FoEx8pYdxVR1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:32.093598', "accepted_at" = '2016-05-15 23:19:32.093598' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.098079') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.099609') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mtqBVwzGY429Xp6eyzs6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "mtqBVwzGY429Xp6eyzs6"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:32.103039', "accepted_at" = '2016-05-15 23:19:32.103039' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.108950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.110887') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "hpG6VePSsrx34wo49ip4"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.117520') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:32.119748', "reminded_at" = '2016-05-15 23:19:32.119748' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.125110') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.128137') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.129669') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.131741') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.133273') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "fNDmwR8NVq6NhyTxxzx4"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "fNDmwR8NVq6NhyTxxzx4"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.139834') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.141644') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yXNZjDxdjwKHRLNKNztB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.147931') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.151196') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KZjsTfshfphLf7mJNao3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.155275') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.156828') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.160478') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.163434') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.165382') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.167211') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.168770') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.170261') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "DXm9kYrRKZPz6VHBQKUW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:32.172387', "accepted_at" = '2016-05-15 23:19:32.172387' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.175224') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.176993') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VZAWZNCqaXwbx4RGAF8k"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.182566') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.186527') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.188297') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.190021') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.197475') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.199550') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "6sL9vey87vFR7Nn9nh6H"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:32.201712', "accepted_at" = '2016-05-15 23:19:32.201712' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.202483') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.203938') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "mYWnnYvNaYxjxsLrnQq5"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.209643') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.212033') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "WrqEU1hSkp5yt7UEetdx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.216012') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.218001') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "gzumPbHTx8FikbtNgVii"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.220673') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.223383') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.225234') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "hq7XmwzawyxnXBZzqxPi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.227251') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.238294') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.240381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Jpqi5XAjAyvUVL4ofc8d"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:32.243050', "accepted_at" = '2016-05-15 23:19:32.243050' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.246065') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.247804') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.249720') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.251459') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "CuDNghekzY4UQ5AxpxwA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.254642') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.256383') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "w6yTbnv6BMFCmfGq97uQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "w6yTbnv6BMFCmfGq97uQ"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.6ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.265631') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.267225') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TRoSg62Bisczq2HMkPKp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.270903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.279595') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.281975') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.284328') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.289070') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.290987') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "bdHxjnbp8LmxPzXMGXnP"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.293414') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:32.295374', "reminded_at" = '2016-05-15 23:19:32.295374' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.299704') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9qX1r25yfBCtXb1KMFxj"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC], ["created_at", 2016-05-15 23:19:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.302601') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.304920') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:32 UTC], ["updated_at", 2016-05-15 23:19:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.311566') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:32.317193') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.143830') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.166616') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.168587') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "N2Vs3YrpkJeMFJax2g3q"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.177077') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:59.186620', "reminded_at" = '2016-05-15 23:19:59.186620' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.189730') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.191543') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ySPs5sJdR7gmudE8ZWAo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:59.194208', "accepted_at" = '2016-05-15 23:19:59.194208' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.197584') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.199650') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.201956') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.205564') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.210094') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.214589') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.217330') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.220804') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.222402') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1ZzhJG4kaLksj94cDSs1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.224396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.227895') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.230102') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "YvsqbeTypY5kpejuL2X4"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "YvsqbeTypY5kpejuL2X4"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.238665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.241480') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.244123') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.249458') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PrKYWTsshK4e9AikyqJs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.253256') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.255197') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PNQurCfKsBcAGeYPUSXo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.263514') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.265839') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "2eyGTyzzJhxyquzkR5h9"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.273330') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.274992') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KqZz13qqtbaDfYyYAYay"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "KqZz13qqtbaDfYyYAYay"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:59.278078', "accepted_at" = '2016-05-15 23:19:59.278078' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.280859') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.283005') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "d5upBxe4WTHqHf4282UN"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:59.285743', "accepted_at" = '2016-05-15 23:19:59.285743' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.288973') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.290877') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2HxWiTZsvhmeLDtUefis"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.298183') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.300040') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "viFAFSZpqsxXE4Lzfhsh"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.302313') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:59.304235', "reminded_at" = '2016-05-15 23:19:59.304235' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.307149') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.309556') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "w7eQrxkp8hjfY255HMjE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.312457') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.323125') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.325181') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "pMyFsGsKTxKCSiohyXzJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:59.328124', "accepted_at" = '2016-05-15 23:19:59.328124' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.331176') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.333156') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "xpb9ZVhjg5zb1iN9AGVa"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.337599') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.339762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.342961') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.345838') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.348033') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "Fys53Kx56zDHUBQyjaxR"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "Fys53Kx56zDHUBQyjaxR"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.354295') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.356494') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Qbt7kDYrJBFFesVFrbjG"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.360532') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.365137') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "M21XMHL3qsmtZmpWX8XR"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.367317') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.369779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.372593') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.374104') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "f8EUz9vW4kst4AyWYGpm"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:19:59.376185', "accepted_at" = '2016-05-15 23:19:59.376185' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.380767') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.382423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "MyAs9BwbiQZHBbsL3oVs"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.387513') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "RjNqdkz1hjJNsSURsoAR"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.390132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.392490') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.393985') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.395414') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.397188') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.398569') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.400499') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.402053') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "NGfjFjgDf8urpSCkQH7F"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:19:59 UTC], ["updated_at", 2016-05-15 23:19:59 UTC], ["created_at", 2016-05-15 23:19:59 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.406948') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.408782') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.410258') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:19:59.414206') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.427281') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "puyAT7ykfvyUy6o6pr5y"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.438548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.440945') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.448665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "NyStAKh4yJe4K9SE9HEi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:06.451758', "accepted_at" = '2016-05-15 23:20:06.451758' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.454563') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.456337') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fSxouJi7HUP9aAKPAAmr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:06.458559', "accepted_at" = '2016-05-15 23:20:06.458559' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (1.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.462415') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.469794') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "SqZKdj9z5f9qdBcBKDdT"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.473553') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.475538') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oDjwjopWhTpRacX88iEf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.481338') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.483743') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "AwGEGCFxz8yL2tuNhptP"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.493376') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.498639') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ardFZcXrMXzVRoW5Ep5k"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.500902') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:06.502910', "reminded_at" = '2016-05-15 23:20:06.502910' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.505439') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.507072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.514376') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.517440') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.519273') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "YLMpJ6vUYfdpGzFiVKXk"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "YLMpJ6vUYfdpGzFiVKXk"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.524616') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.528342') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.534189') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.535585') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.537020') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.538901') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.540639') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1nDg1Kvyy1XCxJpD4VZu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:06.542905', "accepted_at" = '2016-05-15 23:20:06.542905' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.547037') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.548705') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "mfSdvqpRKaxJAs2hvJyD"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.551886') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.554447') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "2vVnyVCDmAhk1JF8VdCU"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.557502') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.559997') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.563298') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.567530') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.569031') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oTJ29uLMHMmLcRiSdEqM"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "oTJ29uLMHMmLcRiSdEqM"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:06.572307', "accepted_at" = '2016-05-15 23:20:06.572307' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.576854') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.578425') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "GRgpozrbY5ZHRrRNLdEH"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.584201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.586219') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.588278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.590199') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rKcFdMqXMPVvuA6fHVeK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.592324') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.599152') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.600754') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.604258') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.605791') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "EirLVyzgVJEzheNQHQcZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.607801') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.2ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.613972') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.616204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "syoSqfsxL9zLzCmebvb6"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "syoSqfsxL9zLzCmebvb6"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.623396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.625185') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "V8QgWp7exdcbNWMoxqPc"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.627345') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:06.629164', "reminded_at" = '2016-05-15 23:20:06.629164' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.636822') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.639402') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "RFMgy9KCSoV2gjUax8gG"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:06.642056', "accepted_at" = '2016-05-15 23:20:06.642056' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.643014') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.647151') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yyUscR982MBpDtr27apn"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.654003') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.656660') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.661362') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.664701') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.666395') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.668213') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.670011') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.671394') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.676193') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.678347') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "woxmxZqpHZhvn6Fhzsa5"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.683322') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.685634') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "veynFW7aAxCXCSCaRXsh"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:06 UTC], ["updated_at", 2016-05-15 23:20:06 UTC], ["created_at", 2016-05-15 23:20:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:06.691438') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.071446') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.089893') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.100302') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.103656') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (2.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "UsXKJPRckhk6x8kJi2Sx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.120927') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.123073') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "WxGmGaBTqTs5DzuU4M2J"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.125358') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.135071') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.139128') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "8pBPujWqdScwkcsHgVep"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.141902') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.144866') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.146370') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.148445') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.150021') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Z3hUr5qpJJ6oxzAJLsur"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.153381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.155113') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HQW48uUwnDpf5nzqh6sW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:18.157366', "accepted_at" = '2016-05-15 23:20:18.157366' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.160458') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.165045') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.168237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.170418') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QCL6arTfqp2xNqsMwVjK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.172788') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.185278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.187029') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "gj8MsWpSrHTpRqC43ehA"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.193413') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.195299') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oWaSyyLShzBSyw4Hcdxw"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.198137') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.202003') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.204182') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.205874') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.207495') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zLddgkWLEpQz4vE3Mtqz"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.6ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.213532') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.215404') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "apaAvzvJRW1y45sQi52X"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.219204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.221245') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.223067') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.226542') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.228202') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "oD9xvmygCtuMKqD9J97s"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.230385') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:18.232214', "reminded_at" = '2016-05-15 23:20:18.232214' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.235002') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.236904') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "qYFpHp8ucztiy91iWUT8"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "qYFpHp8ucztiy91iWUT8"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.247833') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.249810') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.251997') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.254095') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.255608') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.257054') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.258518') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.260113') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uRkJ17KJ4x5F7U7gNWsg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:18.262694', "accepted_at" = '2016-05-15 23:20:18.262694' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.268278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.269868') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "o6yiFo99SHSmxM6pi5xH"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:18.271949', "accepted_at" = '2016-05-15 23:20:18.271949' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.272687') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.274826') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ktJDsrGpz8yXndU7B1KY"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.280693') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.282379') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "xqwfgiEJ8DMrhhcpcvKW"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.286662') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.288817') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VaoBfrpgk9nVjLH2Uv7g"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:18.291471', "accepted_at" = '2016-05-15 23:20:18.291471' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.296399') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.298308') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "r1Vz8TVnmojr6pxiLSEM"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.304124') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.306999') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "hpVyH7hMAwaAqpH6xm5S"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "hpVyH7hMAwaAqpH6xm5S"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:18.311558', "accepted_at" = '2016-05-15 23:20:18.311558' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.317368') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.319365') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.321646') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.323954') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.326325') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "P2LqmtLKm3ZjUi6hodZ4"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "P2LqmtLKm3ZjUi6hodZ4"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.334632') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.336245') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.339332') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.340884') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yPjRf4Ggph894yxf8xnF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:20:18 UTC], ["updated_at", 2016-05-15 23:20:18 UTC], ["created_at", 2016-05-15 23:20:18 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:20:18.343466') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:20:18.345437', "reminded_at" = '2016-05-15 23:20:18.345437' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.050548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.075855') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (2.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VTysPH9xiPJbpCzev12j"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:22:06.091962', "accepted_at" = '2016-05-15 23:22:06.091962' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.102086') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.103960') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "i22rVosdtAK8mpbqYbWm"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.105987') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.116472') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.127196') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.129173') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "uqFFxhrDD3p9kaWE4Y3n"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.135999') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.138537') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "euQjLNrBaSS3FfeDxuix"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.141503') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:22:06.146202', "reminded_at" = '2016-05-15 23:22:06.146202' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.149923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.151775') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "RXCJDk55mhiApywQXNzx"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "RXCJDk55mhiApywQXNzx"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.158243') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.162441') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.165785') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.167808') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.169459') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.171129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HVfbmRasLJKVuLWgYpbe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.180911') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.182714') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "pna7WptqtY1ZzqzWp5CL"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.186888') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.188798') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Lka7pYfWPvqvJTiphc9A"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.190870') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.8ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.198192') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.202050') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "7nzGzbYZsJSKNnK8kJjS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.209851') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.211758') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "s4D6jgQsSENXGg3k4u1d"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.216212') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.218320') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.221318') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "dBSsCzbGEK4Ge9Jby4zr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.224014') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.226255') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.227855') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.229408') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.233443') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.235455') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.239038') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.240566') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "7cxs5oz7dS69fVDDv9jg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.242557') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:22:06.247706', "reminded_at" = '2016-05-15 23:22:06.247706' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.252093') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.253631') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "4jvSP8Tw5jcEDgjoxxes"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "4jvSP8Tw5jcEDgjoxxes"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:22:06.256395', "accepted_at" = '2016-05-15 23:22:06.256395' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.258967') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.260874') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.262622') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.264254') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "b9zda3SMuFC2zqykQChb"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.267633') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.269745') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VQsHiQqxnNoupwuCjRyp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:22:06.271906', "accepted_at" = '2016-05-15 23:22:06.271906' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.276278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.281684') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.283523') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "tgrzbCnNECz6uLE5doVc"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "tgrzbCnNECz6uLE5doVc"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.288283') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.290000') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "UdwsBWpTb4e9im8zwiKn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:22:06.292651', "accepted_at" = '2016-05-15 23:22:06.292651' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.295393') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.297133') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PWf3ro6s8AigMLRc5DXi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.304113') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.316899') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.319062') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.323923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.325801') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "bdxKFxPap6Hycd5vTSeV"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:22:06.328180', "accepted_at" = '2016-05-15 23:22:06.328180' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.329027') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.330652') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "bNLWEzqpGukQ9LPSGXej"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.336821') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.338507') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "8qybVwVT5pasQmmTDv4C"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC], ["created_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.340622') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:22:06 UTC], ["updated_at", 2016-05-15 23:22:06 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.346317') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.348057') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.349536') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.351640') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:22:06.353514') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.542186') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.566745') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.574809') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.578760') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "espyWy3nNwN4bRhWQKdA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.583392') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.585133') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.604354') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.606259') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "csyGkyPYU3ZKZkbBZQyK"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.617271') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.619469') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "9jpp8w8Zq6DnySgWxwp6"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:24:10.622021', "accepted_at" = '2016-05-15 23:24:10.622021' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.623045') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.624752') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "A4s35kKzsZG52psskfpS"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.632731') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.634570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "r6KByKE8LXXCoYBJRpUr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:24:10.637065', "accepted_at" = '2016-05-15 23:24:10.637065' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.641346') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "sMPp3YxRuJjEqfVwsVqn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.645340') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.647627') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.649352') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iJwdnWX8KPAunhHgA4gC"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.651455') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.657487') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.659283') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XWsyivLapifdqp6jmdp9"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:24:10.661596', "accepted_at" = '2016-05-15 23:24:10.661596' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.664901') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.666780') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "EdxmTWfDwaYzfayhcjG1"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "EdxmTWfDwaYzfayhcjG1"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.673732') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.677397') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.681425') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.683747') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.685414') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "bZL3gtkVCPUbVanFzKLi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.690156') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.692308') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "D4JMYoUAxDw3yRx4cVGz"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "D4JMYoUAxDw3yRx4cVGz"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:24:10.695793', "accepted_at" = '2016-05-15 23:24:10.695793' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.698456') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.703007') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.704740') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yheAgzLJQp4rzJoMaBU3"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.709135') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.711182') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "bw4pbwWaihyMozcFabQK"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "bw4pbwWaihyMozcFabQK"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.716054') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.717919') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "LEr1W1rriRAtpBg3Gxep"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:24:10.722021', "accepted_at" = '2016-05-15 23:24:10.722021' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.728433') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.730411') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.733101') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.735018') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.738252') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.739923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "kN6UgLLWvWzh6aj1UXxu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.742210') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:24:10.743931', "reminded_at" = '2016-05-15 23:24:10.743931' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.746814') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.748834') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.750632') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.754885') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.761800') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.766375') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.770612') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.772191') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iydDdsGfZktnsJjbnfzX"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.774449') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.780234') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.781911') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yq8mmpCvwrz9xobMe32s"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.784787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:24:10.787109', "reminded_at" = '2016-05-15 23:24:10.787109' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.790229') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.794853') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1hFnKb2aqb5pPxBaK2WX"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.799087') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.801189') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "piZA6i4B9QzA9YcsKGwJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.806728') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.808793') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.813500') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.815213') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.816865') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.820583') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.822407') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "rbYdArs59Us6NipytMK9"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.826199') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.828590') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "VPv32d1N44brzTpeRqT2"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:24:10 UTC], ["updated_at", 2016-05-15 23:24:10 UTC], ["created_at", 2016-05-15 23:24:10 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:24:10.831002') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:22.950599') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:22.969566') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:22.976689') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:22.978882') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Uhs6NNcoiQjstRCiGagx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:22 UTC], ["updated_at", 2016-05-15 23:29:22 UTC], ["created_at", 2016-05-15 23:29:22 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:22 UTC], ["updated_at", 2016-05-15 23:29:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.003487') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.007376') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.009724') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.012016') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.015209') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "4GecAzSxqwxBEhk692E1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.025784') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.027610') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "BLGSxpURexc6RYssZcCN"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.034633') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.036306') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KGm5mR65R69HhqePHmxQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.038967') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:29:23.041449', "reminded_at" = '2016-05-15 23:29:23.041449' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.044780') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.046783') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1Ezq9yXXZDMsuwdUqfkN"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:29:23.049765', "accepted_at" = '2016-05-15 23:29:23.049765' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.057227') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.061166') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.063166') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.064953') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fqfWSfKsoDnBLP1Vr1dn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.067336') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.074546') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.076071') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Js3MTQG8Xn8GUJNBFWdE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.078452') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.084192') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.085923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "vjbNSbCF2VydCoBBso86"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.092956') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.096727') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.098290') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "HEbSz236uEx86zNs4pps"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.101481') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.103064') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "sHbGzSfsNQNNFpVC6yBg"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.109066') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.113094') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "aT4GaWifZ92ixzeFhGZH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.115952') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.118110') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.119787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.121426') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.123381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "eDiwtURsK2nzsKHSFQvg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:29:23.125735', "accepted_at" = '2016-05-15 23:29:23.125735' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.129036') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.130665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.132169') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.135469') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.137667') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1Ld51kccWbm68i8hsGAq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.142748') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:29:23.144668', "reminded_at" = '2016-05-15 23:29:23.144668' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.147426') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.149345') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HirjEvvhXg7x4KGeqAJD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.154814') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.156505') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QMnTkwWupnQzqepxz7Ch"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "QMnTkwWupnQzqepxz7Ch"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:29:23.159779', "accepted_at" = '2016-05-15 23:29:23.159779' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.164132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.167815') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.169651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KhphFjddyWhXVQzQeyE5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.174894') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.176711') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1KPAvgyWQQRTqtt5fGyM"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:29:23.179086', "accepted_at" = '2016-05-15 23:29:23.179086' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.182119') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.183689') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.185704') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.187274') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "gDJxRsexrXeyXpWkuMDM"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "gDJxRsexrXeyXpWkuMDM"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.192781') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.194640') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.196181') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.198008') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.204320') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.209097') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "PNCGnCFCzhBfbziqBJV4"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:29:23.211520', "accepted_at" = '2016-05-15 23:29:23.211520' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.212323') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.214626') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "XWHsxpFpGYqrmpXUJbsp"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.221403') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.223324') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.225368') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.227507') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:29:23.229954') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "CbeNjDRfWQjCTGPJ9UwE"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:29:23 UTC], ["updated_at", 2016-05-15 23:29:23 UTC], ["created_at", 2016-05-15 23:29:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "CbeNjDRfWQjCTGPJ9UwE"], ["LIMIT", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.040847') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.059208') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "r7ZZybTZV8UGkHZAL9FT"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.068701') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.070681') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "EhzJYUkEUpNchEY7AXBu"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "EhzJYUkEUpNchEY7AXBu"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.084361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.087289') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.094527') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yMAmYqpXs5tU9jZB5A2A"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:31:00.098031', "accepted_at" = '2016-05-15 23:31:00.098031' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.101068') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.104661') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.106748') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.110003') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.112877') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.114899') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "vtgx9MSkqWZTMfae277S"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:31:00.117362', "accepted_at" = '2016-05-15 23:31:00.117362' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.121613') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.126085') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "uuVzcsqWsynH1xdDb3oZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "uuVzcsqWsynH1xdDb3oZ"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.132185') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.133831') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.135408') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.137258') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.138702') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.142588') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.144200') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "BXfzWqEbdUx4daDddy7U"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.146250') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:31:00.148056', "reminded_at" = '2016-05-15 23:31:00.148056' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.158000') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.162611') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.164477') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Lxh6ztCsxAPXc7upRJ1L"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.167998') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.170190') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "BDYBzzTKSfwkSytuyhMR"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.176960') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.179601') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.181714') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.183270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.184671') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.186108') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.187815') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "eBUPmmSMqJNpEHjgQuP6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.194948') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.196806') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "pnz3p7r1saWYzYiSjAtN"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.201527') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.203130') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (1.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.204797') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.208969') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "YhuHEyugd9vz2zEwzskA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:31:00.211861', "accepted_at" = '2016-05-15 23:31:00.211861' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.215556') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.217668') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "W5uJP1mPGZBbLLzQYQtr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.220173') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.228428') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.230104') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "uLRFGoUmqj3sX2Uh55dQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.238333') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.243610') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.245308') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "GtchyxAtFdHAUK9uSREj"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.247615') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:31:00.250114', "reminded_at" = '2016-05-15 23:31:00.250114' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.258595') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.260319') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "xza9krGvWpJbJpUa7pUS"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:31:00.262534', "accepted_at" = '2016-05-15 23:31:00.262534' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.263681') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.265226') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "mVVR5knDe6zZqiaVu8AG"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.270700') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.272051') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.273484') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.276782') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.279166') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Ychg5ne6qiKffD6outeX"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.281529') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.285224') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.286849') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.290859') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.292869') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "M4d5ByhdzzSLLphxyztq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.298197') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.299728') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "78EkXyS3y4GvkaNM37Dg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "78EkXyS3y4GvkaNM37Dg"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:31:00.302553', "accepted_at" = '2016-05-15 23:31:00.302553' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.306012') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "DMMVNm4prEKbg3pk4c6e"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.309597') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.312153') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:31:00.313984') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Y1WHdmuixU7aSrvaxo8Q"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:31:00 UTC], ["updated_at", 2016-05-15 23:31:00 UTC], ["created_at", 2016-05-15 23:31:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ? [["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='proposal_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='proposal_idx' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proposal_tokens_on_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proposal_tokens_on_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.461689') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.479570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.492796') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.495392') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.513706') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.518549') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.520317') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "egNKDpXB27ZjjB3Sbs8v"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.522766') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:33:27.525174', "reminded_at" = '2016-05-15 23:33:27.525174' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.529542') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.531035') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rpBizmyHuQAKhBszpUWG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "rpBizmyHuQAKhBszpUWG"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:33:27.534267', "accepted_at" = '2016-05-15 23:33:27.534267' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.538756') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.540366') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "djC9djQrq3SDGCYDcTXn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.542426') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.546041') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.547849') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "GhU4zqPpXbuCs6ZowbWH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.557816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.559558') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.561249') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.565302') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.566938') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "grtLiApJyf4LNnzzQGfL"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.569180') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:33:27.571014', "reminded_at" = '2016-05-15 23:33:27.571014' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.575678') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.578381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.580201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6pzNAvYsASWSxxmaUVKo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.590485') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.592817') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "2SCj1xHyKXVmnqvwbR2e"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.597547') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.599283') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qXS1STwqaWGu1WZSRiaQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.602550') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.604263') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qxbq6hpztge8ft93CJsa"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:33:27.606329', "accepted_at" = '2016-05-15 23:33:27.606329' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.609381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.611454') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "D3j5t8DeeUZjF41TYZEp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:33:27.613857', "accepted_at" = '2016-05-15 23:33:27.613857' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.617531') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "buyEazBasa1qqDQhcuez"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2017-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.623348') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.626415') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.628199') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ebphx46mAdqC7NQp3YeL"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:33:27.630518', "accepted_at" = '2016-05-15 23:33:27.630518' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.633326') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.635638') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.637527') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.639193') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.641472') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.643618') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "4xjegVZ8BsTL1d2Wgjf8"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "4xjegVZ8BsTL1d2Wgjf8"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.649866') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.651477') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.655754') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.658111') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.660807') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.662375') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cErDBgEcakq5xW2rSeGr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.665457') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.667214') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "grwbGMCP5uxu2qJUzyNG"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "grwbGMCP5uxu2qJUzyNG"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.673004') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.674763') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.676863') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.678669') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2yLx9sG5V1zi8ydNPGJe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.680931') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.688320') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.690621') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.692583') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.697236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.698894') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "dnrWBE5nZRBiqQEE2FzJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2016-05-15 23:33:27.701142', "accepted_at" = '2016-05-15 23:33:27.701142' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.701908') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.706333') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "4VD7Cj7sHajdt8yMqukp"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.711997') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.713657') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "nY7yVqpPwpJbLfpTNmA3"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.716787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.718309') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "7UDrvzJp2v8dTN8A4BJm"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.721004') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.724111') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2016-05-15 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.727890') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2016-05-15 23:33:27.729629') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "EziiTqKMNw5y2XWxHVNh"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2016-05-16 23:33:27 UTC], ["updated_at", 2016-05-15 23:33:27 UTC], ["created_at", 2016-05-15 23:33:27 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.044593') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.084019') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (1.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "z96y27K1dpbvTAsAqzBw"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.098322') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.100308') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TozdBoQyL1gyQRpWs1bG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2019-07-03 06:27:32.103425', "accepted_at" = '2019-07-03 06:27:32.103425' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.107709') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "sU4ocYT3CX9Nxzi3gXP6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2020-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.110761') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.113185') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.115254') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.116928') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.121065') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FyY1QoKfxqsJqvwxCiBH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.141634') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.144458') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.148180') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.159787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.164204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "9TVsTGDfFujPfdV3ppyu"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.172554') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.176144') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "raj9SsiuN4qUdHD2rqRF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.181519') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.185668') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.188331') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QKEzLTh9AQZXqpywBJYy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2019-07-03 06:27:32.191810', "accepted_at" = '2019-07-03 06:27:32.191810' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.197303') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.199545') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TPdRdVGKYocmXCyX7agx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.202773') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2019-07-03 06:27:32.207593', "reminded_at" = '2019-07-03 06:27:32.207593' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.213130') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.216833') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.221112') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.226533') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "K1v4cdVKd2yJzqHPqPzM"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "K1v4cdVKd2yJzqHPqPzM"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.242881') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.246591') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.249662') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XVzu5yrVLzFg7WGZveke"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.257960') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.261033') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MpRxcyd9zC4CjLz7EG96"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.265171') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.276563') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.280880') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "G1gJiwj7dPF4MqrJcT1R"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.291028') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.293722') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tmbaHupVKraVZL6pM3tp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.296452') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2019-07-03 06:27:32.300832', "reminded_at" = '2019-07-03 06:27:32.300832' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.304312') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.307142') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.310214') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.313294') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "Hy5xbwUMz6HKEqiW4EsL"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "Hy5xbwUMz6HKEqiW4EsL"], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.329356') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.337899') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.341439') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "7LpC8V53R1xmkuB5sxeA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "7LpC8V53R1xmkuB5sxeA"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = '2019-07-03 06:27:32.345699', "accepted_at" = '2019-07-03 06:27:32.345699' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.350548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.354602') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rEzg4oGoewy1AbGxJhzV"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.360078') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.376019') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.378654') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.383332') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.385828') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.389295') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.393207') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.397094') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.400580') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "npJLEppyx5LmM1ypg5no"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.411475') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.3ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.424483') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.428039') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Ce7Zscr2P545jmgGCxwb"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2019-07-03 06:27:32.433367', "accepted_at" = '2019-07-03 06:27:32.433367' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.434893') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.438084') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Fz9PpfPpjyDiQom25eRm"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.444342') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.446680') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tryn8hzurPY5ENzHaxBs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = '2019-07-03 06:27:32.451609', "accepted_at" = '2019-07-03 06:27:32.451609' WHERE "proposal_tokens"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.455953') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.459011') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.461091') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.464692') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.474306') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2019-07-03 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.487723') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:27:32.492578') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Vk7omsxtfSPUY8VdojZL"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", 2019-07-04 06:27:32 UTC], ["updated_at", 2019-07-03 06:27:32 UTC], ["created_at", 2019-07-03 06:27:32 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (1.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-03 06:35:03.195479"], ["updated_at", "2019-07-03 06:35:03.195479"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.208469"], ["updated_at", "2019-07-03 06:35:03.208469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.224687') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.266806') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "246x5KLrwa9i29dAocU6"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-04 06:35:03.244329"], ["updated_at", "2019-07-03 06:35:03.268103"], ["created_at", "2019-07-03 06:35:03.268103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.270391"], ["accepted_at", "2019-07-03 06:35:03.270391"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.271489') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.273072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "WG5qCVnxMFamdh1iFyk4"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-04 06:35:03.272381"], ["updated_at", "2019-07-03 06:35:03.273829"], ["created_at", "2019-07-03 06:35:03.273829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.276178') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.277784') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FCyiQxny3Zq5PjLppaPG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.277091"], ["updated_at", "2019-07-03 06:35:03.278437"], ["created_at", "2019-07-03 06:35:03.278437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.281752') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.283982') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qfLu8kgMsyqxxMsWy3Cy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.282960"], ["updated_at", "2019-07-03 06:35:03.284825"], ["created_at", "2019-07-03 06:35:03.284825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.288724"], ["updated_at", "2019-07-03 06:35:03.288724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.290795') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.293377') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pf5pRsqbAosdV7W4PpYG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.292220"], ["updated_at", "2019-07-03 06:35:03.294392"], ["created_at", "2019-07-03 06:35:03.294392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.295616') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.300495"], ["reminded_at", "2019-07-03 06:35:03.300495"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.303726') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.305510') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.307354') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.309924"], ["updated_at", "2019-07-03 06:35:03.309924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.312082') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.314783') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.318255') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.321169') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.323763') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rc6JfEbaGUPsx4UppZyT"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.322755"], ["updated_at", "2019-07-03 06:35:03.324679"], ["created_at", "2019-07-03 06:35:03.324679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.329278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.332954') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fAT6RYtSxPcGeMmhFwvK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.331330"], ["updated_at", "2019-07-03 06:35:03.334293"], ["created_at", "2019-07-03 06:35:03.334293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.336448"], ["accepted_at", "2019-07-03 06:35:03.336448"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.339209') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.341096') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pPUwzZFQMFxfZfDXtQix"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.340303"], ["updated_at", "2019-07-03 06:35:03.341956"], ["created_at", "2019-07-03 06:35:03.341956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.344119') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.362188') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.366966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TfkR8RqHhY1oHDBgCVJH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.364636"], ["updated_at", "2019-07-03 06:35:03.368698"], ["created_at", "2019-07-03 06:35:03.368698"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.375665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.379441') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "8qH6SxsoUzsG4STiqrfG"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-04 06:35:03.378107"], ["updated_at", "2019-07-03 06:35:03.380633"], ["created_at", "2019-07-03 06:35:03.380633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "8qH6SxsoUzsG4STiqrfG"], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.389048') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.391542') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.395792') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.399134') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.401722') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.406043') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PpqseqxrfD9knK9km4tC"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-03 06:35:03.405041"], ["updated_at", "2019-07-03 06:35:03.407172"], ["created_at", "2019-07-03 06:35:03.407172"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.411123') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.415095"], ["updated_at", "2019-07-03 06:35:03.415095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.417995') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.424042') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "LxipgT2xKLbXxDD9qb8j"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-04 06:35:03.421360"], ["updated_at", "2019-07-03 06:35:03.426039"], ["created_at", "2019-07-03 06:35:03.426039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.432311"], ["updated_at", "2019-07-03 06:35:03.432311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-03 06:35:03.435074"], ["updated_at", "2019-07-03 06:35:03.435074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.436641') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.439731') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yxyKDUCzx7UCAxiK5vJP"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-04 06:35:03.438550"], ["updated_at", "2019-07-03 06:35:03.440881"], ["created_at", "2019-07-03 06:35:03.440881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.447266') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.449812') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-03 06:35:03.453590"], ["updated_at", "2019-07-03 06:35:03.453590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.456182') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.4ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.461893') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "E24oiva3B4VpHLqRTeMa"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-04 06:35:03.459308"], ["updated_at", "2019-07-03 06:35:03.463426"], ["created_at", "2019-07-03 06:35:03.463426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-03 06:35:03.465479"], ["updated_at", "2019-07-03 06:35:03.465479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.467666') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.471909') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "bJGipXCFHoXR6Eqreyyg"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-04 06:35:03.470218"], ["updated_at", "2019-07-03 06:35:03.473390"], ["created_at", "2019-07-03 06:35:03.473390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.475001') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.480620"], ["updated_at", "2019-07-03 06:35:03.480620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.482489') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.484869') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "dPgnNi2gQJpiasBZdpdi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.483718"], ["updated_at", "2019-07-03 06:35:03.486376"], ["created_at", "2019-07-03 06:35:03.486376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "dPgnNi2gQJpiasBZdpdi"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.490146"], ["accepted_at", "2019-07-03 06:35:03.490146"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.493187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.496973"], ["updated_at", "2019-07-03 06:35:03.496973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.499194') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.502841') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.508262"], ["updated_at", "2019-07-03 06:35:03.508262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-03 06:35:03.509788"], ["updated_at", "2019-07-03 06:35:03.509788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.510719') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-03 06:35:03.514542"], ["updated_at", "2019-07-03 06:35:03.514542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.516274') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.521265') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.533568') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.538729"], ["updated_at", "2019-07-03 06:35:03.538729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.540203') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.543481') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "LmafggKVU9x3LaXRskjn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.541652"], ["updated_at", "2019-07-03 06:35:03.544960"], ["created_at", "2019-07-03 06:35:03.544960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.546594') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.552559"], ["updated_at", "2019-07-03 06:35:03.552559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.554417') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.558242') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.561489') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.564400') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.567703') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Qb7CtcLEcmDikt6gFzQu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.565904"], ["updated_at", "2019-07-03 06:35:03.568913"], ["created_at", "2019-07-03 06:35:03.568913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.572521"], ["accepted_at", "2019-07-03 06:35:03.572521"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.575830') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.579198') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yQQxYTUjFw4Kqz3Uh1o4"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.577885"], ["updated_at", "2019-07-03 06:35:03.580464"], ["created_at", "2019-07-03 06:35:03.580464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.583379"], ["accepted_at", "2019-07-03 06:35:03.583379"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.586942') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.590056') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "Nq5vNb3FpS76sxrKiLV4"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-04 06:35:03.588528"], ["updated_at", "2019-07-03 06:35:03.591046"], ["created_at", "2019-07-03 06:35:03.591046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "Nq5vNb3FpS76sxrKiLV4"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-03 06:35:03.599012"], ["updated_at", "2019-07-03 06:35:03.599012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.601505') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.604964') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ztwKLYgZwoVHSbiH6Xsu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-04 06:35:03.603442"], ["updated_at", "2019-07-03 06:35:03.606291"], ["created_at", "2019-07-03 06:35:03.606291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-03 06:35:03.607703') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.611984"], ["reminded_at", "2019-07-03 06:35:03.611984"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.746255') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.776315') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uvFzz1GNTDFQpFrxmysJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.765614"], ["updated_at", "2019-07-04 00:19:15.777242"], ["created_at", "2019-07-04 00:19:15.777242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.780574"], ["accepted_at", "2019-07-04 00:19:15.780574"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.787089"], ["updated_at", "2019-07-04 00:19:15.787089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.788725') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.803070') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rKQvsYLKuWH2qSRprwak"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.802173"], ["updated_at", "2019-07-04 00:19:15.803983"], ["created_at", "2019-07-04 00:19:15.803983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "rKQvsYLKuWH2qSRprwak"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.808956"], ["accepted_at", "2019-07-04 00:19:15.808956"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.811781') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.813570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2F7VmSX9ccSr6JJApcw6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.812835"], ["updated_at", "2019-07-04 00:19:15.814268"], ["created_at", "2019-07-04 00:19:15.814268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.816330"], ["accepted_at", "2019-07-04 00:19:15.816330"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.818707') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.821258') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9Rbz49N4b5tqnyttvWxT"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.819847"], ["updated_at", "2019-07-04 00:19:15.822572"], ["created_at", "2019-07-04 00:19:15.822572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.824553"], ["accepted_at", "2019-07-04 00:19:15.824553"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.826922') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.828839') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "i7sNNzy7mAHLxZSLMtqQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:19:15.827998"], ["updated_at", "2019-07-04 00:19:15.829650"], ["created_at", "2019-07-04 00:19:15.829650"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "i7sNNzy7mAHLxZSLMtqQ"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.837774') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.840341') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iquxidFbyzU2esT8CNSA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.839295"], ["updated_at", "2019-07-04 00:19:15.841336"], ["created_at", "2019-07-04 00:19:15.841336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.845665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.848643') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 User Create (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.852765"], ["updated_at", "2019-07-04 00:19:15.852765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.856068') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.859520') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yfkJF8pVrJAVne3XhjF8"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:19:15.857882"], ["updated_at", "2019-07-04 00:19:15.861002"], ["created_at", "2019-07-04 00:19:15.861002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.867720"], ["updated_at", "2019-07-04 00:19:15.867720"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.871086') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.874456') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "UHZvSMhWA6Z2sd3pzfMF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.873131"], ["updated_at", "2019-07-04 00:19:15.875596"], ["created_at", "2019-07-04 00:19:15.875596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.877277') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.882947') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.887116') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "d8cgWcDrxuFcbnVpexKQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.885036"], ["updated_at", "2019-07-04 00:19:15.888747"], ["created_at", "2019-07-04 00:19:15.888747"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.893787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.895981') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "i4KaSTsM1xwEnypd5zuG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.895120"], ["updated_at", "2019-07-04 00:19:15.896838"], ["created_at", "2019-07-04 00:19:15.896838"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.899337') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.910393') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.912674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "R7Ls84Ky8eAtoBkEA3up"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.911727"], ["updated_at", "2019-07-04 00:19:15.914013"], ["created_at", "2019-07-04 00:19:15.914013"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.922841') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6vu1myxUNkWzqW35jsZq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:19:15.922163"], ["updated_at", "2019-07-04 00:19:15.924152"], ["created_at", "2019-07-04 00:19:15.924152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.927097') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.932408') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.934852') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "KwH9cJy2B4AW3gpuqCH1"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:19:15.933947"], ["updated_at", "2019-07-04 00:19:15.935968"], ["created_at", "2019-07-04 00:19:15.935968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "KwH9cJy2B4AW3gpuqCH1"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.941892') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.943852') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.945662') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.949293') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.953424"], ["updated_at", "2019-07-04 00:19:15.953424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:15.961728"], ["updated_at", "2019-07-04 00:19:15.961728"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.963712') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.968266') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "oPuvzi2xqQyL8xEzptpd"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:15.966671"], ["updated_at", "2019-07-04 00:19:15.969572"], ["created_at", "2019-07-04 00:19:15.969572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.975305"], ["updated_at", "2019-07-04 00:19:15.975305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.976869') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:15.983328"], ["updated_at", "2019-07-04 00:19:15.983328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.985260') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.990619') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.995348') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.000158') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mR9s1uAs7RDXWqyuip2r"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.998222"], ["updated_at", "2019-07-04 00:19:16.001579"], ["created_at", "2019-07-04 00:19:16.001579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.007390"], ["updated_at", "2019-07-04 00:19:16.007390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.008896') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.010973') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fmCQrGuwa2zDSFXMfzUy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:16.010057"], ["updated_at", "2019-07-04 00:19:16.011921"], ["created_at", "2019-07-04 00:19:16.011921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.014721') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:16.018425"], ["reminded_at", "2019-07-04 00:19:16.018425"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.021576"], ["updated_at", "2019-07-04 00:19:16.021576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.024132"], ["updated_at", "2019-07-04 00:19:16.024132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.025293') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.027413') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Vma8ZVz54fBdAjMgpsje"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:16.026506"], ["updated_at", "2019-07-04 00:19:16.028506"], ["created_at", "2019-07-04 00:19:16.028506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:16.031946"], ["accepted_at", "2019-07-04 00:19:16.031946"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.034069') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.036005') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "j3ALoA3s2mpwdjziy73e"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:16.035184"], ["updated_at", "2019-07-04 00:19:16.036979"], ["created_at", "2019-07-04 00:19:16.036979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.041441"], ["updated_at", "2019-07-04 00:19:16.041441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.042934') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.045106') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ugeLjApoxZ2aA5c9xBxn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:16.044163"], ["updated_at", "2019-07-04 00:19:16.046064"], ["created_at", "2019-07-04 00:19:16.046064"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.049163') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:16.061510"], ["reminded_at", "2019-07-04 00:19:16.061510"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.065469') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.067622') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.069579') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.072443') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.075302') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.078081"], ["updated_at", "2019-07-04 00:19:16.078081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.080113"], ["updated_at", "2019-07-04 00:19:16.080113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.081419') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.084981"], ["updated_at", "2019-07-04 00:19:16.084981"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.087463') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.090329') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.093221') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.096274"], ["updated_at", "2019-07-04 00:19:16.096274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.098098') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.101239') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.103656') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.107287') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.111001') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.114716"], ["updated_at", "2019-07-04 00:19:16.114716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.117242') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.119903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ArxrjQx8AGRYvXKSeHsL"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:16.118779"], ["updated_at", "2019-07-04 00:19:16.121300"], ["created_at", "2019-07-04 00:19:16.121300"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.124900"], ["updated_at", "2019-07-04 00:19:16.124900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.126734') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.129243') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "BU4Wm4Ab76ByxgZoFVyy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:19:16.128208"], ["updated_at", "2019-07-04 00:19:16.130307"], ["created_at", "2019-07-04 00:19:16.130307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.131752') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (5.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.881218') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.908971') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "JUpnskYFvwqHfaFsYhfS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.899941"], ["updated_at", "2019-07-04 00:25:17.909893"], ["created_at", "2019-07-04 00:25:17.909893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:17.913011"], ["accepted_at", "2019-07-04 00:25:17.913011"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.915294') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.916787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.918034') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.919730') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.921412') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.927129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.929419') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "shsSG6MXU7L3QWszhJCe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.928215"], ["updated_at", "2019-07-04 00:25:17.930590"], ["created_at", "2019-07-04 00:25:17.930590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:17.932874"], ["accepted_at", "2019-07-04 00:25:17.932874"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:17.940818"], ["updated_at", "2019-07-04 00:25:17.940818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.942966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.945071') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "k1dAdJpdC81SrkqZr3vC"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.944023"], ["updated_at", "2019-07-04 00:25:17.946554"], ["created_at", "2019-07-04 00:25:17.946554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.948504') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:17.953889"], ["reminded_at", "2019-07-04 00:25:17.953889"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:17.962228"], ["updated_at", "2019-07-04 00:25:17.962228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.964025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.965720') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KPrypw18CmESGE1cnn8k"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:17.964984"], ["updated_at", "2019-07-04 00:25:17.966418"], ["created_at", "2019-07-04 00:25:17.966418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:17.968070"], ["updated_at", "2019-07-04 00:25:17.968070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.968816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.970396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "QqDsoqtkV3XpsjDq5AZm"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:25:17.969635"], ["updated_at", "2019-07-04 00:25:17.971506"], ["created_at", "2019-07-04 00:25:17.971506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.972869') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.975203') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.978173') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uxNGTWx3shW3LSNjdZrv"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.976827"], ["updated_at", "2019-07-04 00:25:17.979321"], ["created_at", "2019-07-04 00:25:17.979321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.997741') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fQpkxfyMZhrxpMWCBsiz"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:25:17.997297"], ["updated_at", "2019-07-04 00:25:17.998755"], ["created_at", "2019-07-04 00:25:17.998755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.001271') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.004668"], ["updated_at", "2019-07-04 00:25:18.004668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.006240"], ["updated_at", "2019-07-04 00:25:18.006240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.007178') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.009065') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "gNZpzQkhXpo7tyyNuLrF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:18.008145"], ["updated_at", "2019-07-04 00:25:18.010064"], ["created_at", "2019-07-04 00:25:18.010064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.013691"], ["updated_at", "2019-07-04 00:25:18.013691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.014840') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.017190') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.019080') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "jSHTixjVpLvHGfQQLrNJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:25:18.018336"], ["updated_at", "2019-07-04 00:25:18.019753"], ["created_at", "2019-07-04 00:25:18.019753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "jSHTixjVpLvHGfQQLrNJ"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.025254') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.027548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.031094"], ["updated_at", "2019-07-04 00:25:18.031094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.032634"], ["updated_at", "2019-07-04 00:25:18.032634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.033992') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.036602') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ey4p2FtSc968pYqzqVWv"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:18.035202"], ["updated_at", "2019-07-04 00:25:18.038039"], ["created_at", "2019-07-04 00:25:18.038039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.039916"], ["accepted_at", "2019-07-04 00:25:18.039916"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.040889') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.043204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KMpsLmkybKqsBy6hD5yF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:18.042172"], ["updated_at", "2019-07-04 00:25:18.044705"], ["created_at", "2019-07-04 00:25:18.044705"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.049129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.051576') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "4eMsXz2zgzxeF8RhzzUx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.050644"], ["updated_at", "2019-07-04 00:25:18.052527"], ["created_at", "2019-07-04 00:25:18.052527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.057727"], ["updated_at", "2019-07-04 00:25:18.057727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.059752') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.063409') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Kt3nVwKyGgANYQ5vPppS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.061740"], ["updated_at", "2019-07-04 00:25:18.064682"], ["created_at", "2019-07-04 00:25:18.064682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "Kt3nVwKyGgANYQ5vPppS"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.068285"], ["accepted_at", "2019-07-04 00:25:18.068285"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.072606"], ["updated_at", "2019-07-04 00:25:18.072606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.074660') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.077327') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "DxiNs5q3Nvwchq12zs8d"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:25:18.076150"], ["updated_at", "2019-07-04 00:25:18.078767"], ["created_at", "2019-07-04 00:25:18.078767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.084103"], ["updated_at", "2019-07-04 00:25:18.084103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.085690') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.088889') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.092290') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.096783') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TFAHXUwVVmapg9RPs2ah"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.094012"], ["updated_at", "2019-07-04 00:25:18.098471"], ["created_at", "2019-07-04 00:25:18.098471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.102958') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.106312') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iydW98zRbqdVizN4YZ1s"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.104903"], ["updated_at", "2019-07-04 00:25:18.107764"], ["created_at", "2019-07-04 00:25:18.107764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.109971') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.119604') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.122708') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ALqVjmzuQdHnyjiGFmT3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.121549"], ["updated_at", "2019-07-04 00:25:18.123696"], ["created_at", "2019-07-04 00:25:18.123696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.128303') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.131396"], ["updated_at", "2019-07-04 00:25:18.131396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.132840"], ["updated_at", "2019-07-04 00:25:18.132840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.134145') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.138231') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.140516') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.143106"], ["updated_at", "2019-07-04 00:25:18.143106"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.145525') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.149705') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.152338') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "pgS97Uizgd35q2Suq446"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:25:18.151147"], ["updated_at", "2019-07-04 00:25:18.153661"], ["created_at", "2019-07-04 00:25:18.153661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "pgS97Uizgd35q2Suq446"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.161029"], ["updated_at", "2019-07-04 00:25:18.161029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.163739') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.165712') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.168506') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.172393') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.174519') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.176690') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.181150"], ["updated_at", "2019-07-04 00:25:18.181150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.183400') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.186339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fmr8Aq956QSRqhtZU2Gq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.185065"], ["updated_at", "2019-07-04 00:25:18.187834"], ["created_at", "2019-07-04 00:25:18.187834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.190333') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.197100') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.200701') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "z2TGsTj9XCXxCVKRjn5t"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.199110"], ["updated_at", "2019-07-04 00:25:18.202268"], ["created_at", "2019-07-04 00:25:18.202268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.204498"], ["accepted_at", "2019-07-04 00:25:18.204498"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.208644"], ["updated_at", "2019-07-04 00:25:18.208644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.210336') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.213609') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Rq3HRWprR8EdAasE7A55"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.212270"], ["updated_at", "2019-07-04 00:25:18.214641"], ["created_at", "2019-07-04 00:25:18.214641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.215963') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.219352"], ["reminded_at", "2019-07-04 00:25:18.219352"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.223128') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.225325') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.4ms) SAVEPOINT active_record_1 Project Create (2.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.259516"], ["updated_at", "2019-07-04 00:27:45.259516"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.296898') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.374786') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (1.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "W9xsqCkRuqhAAeAwtQZx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.345759"], ["updated_at", "2019-07-04 00:27:45.376399"], ["created_at", "2019-07-04 00:27:45.376399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.380806"], ["updated_at", "2019-07-04 00:27:45.380806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.382354') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.386156') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "uypfXb3grpkmA1xkeLUT"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:27:45.383876"], ["updated_at", "2019-07-04 00:27:45.387495"], ["created_at", "2019-07-04 00:27:45.387495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.389070') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.394053') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.399358') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (1.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.402696') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.407888') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "EwvzrcL8Psbq1BjavnZ3"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:27:45.406157"], ["updated_at", "2019-07-04 00:27:45.409095"], ["created_at", "2019-07-04 00:27:45.409095"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "EwvzrcL8Psbq1BjavnZ3"], ["LIMIT", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.425573') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.428538') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.447307"], ["updated_at", "2019-07-04 00:27:45.447307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.449651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.451927') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.455728') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.9ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.465635') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6wW6BQHts7JpETxgteRP"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:27:45.465171"], ["updated_at", "2019-07-04 00:27:45.508699"], ["created_at", "2019-07-04 00:27:45.508699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.512496') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.516824') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.519377') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (18.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.553876') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.559404') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.568549"], ["updated_at", "2019-07-04 00:27:45.568549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (2.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.572527"], ["updated_at", "2019-07-04 00:27:45.572527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (10.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.576677') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.591238') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Rp7pTXPMqxsH3MeXgaYe"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.589381"], ["updated_at", "2019-07-04 00:27:45.592868"], ["created_at", "2019-07-04 00:27:45.592868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.600496') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.603029') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fpUG8VsgVnnjLoU8q7VH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.602016"], ["updated_at", "2019-07-04 00:27:45.604184"], ["created_at", "2019-07-04 00:27:45.604184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.608068"], ["accepted_at", "2019-07-04 00:27:45.608068"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (31.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.611025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.649161') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "GWcC6REdAZRSMMsD7s9n"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.644031"], ["updated_at", "2019-07-04 00:27:45.650407"], ["created_at", "2019-07-04 00:27:45.650407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.653919') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.656831') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "B7zrHnJHsE75sKzmGY2j"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.655385"], ["updated_at", "2019-07-04 00:27:45.658047"], ["created_at", "2019-07-04 00:27:45.658047"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.661714') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.677389') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.680682') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.683223') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.685846') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.688828') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.690932') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.693296') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.701770') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.707092') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VzkUsVg1F83ea4uyssSB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.705862"], ["updated_at", "2019-07-04 00:27:45.708281"], ["created_at", "2019-07-04 00:27:45.708281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.710747"], ["accepted_at", "2019-07-04 00:27:45.710747"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.714470"], ["updated_at", "2019-07-04 00:27:45.714470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.722597') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.735043') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.738383"], ["updated_at", "2019-07-04 00:27:45.738383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.740389') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (2.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.748550"], ["updated_at", "2019-07-04 00:27:45.748550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.758264') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.766357') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gdCywyGhHC1FiGZpKzor"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.764992"], ["updated_at", "2019-07-04 00:27:45.767652"], ["created_at", "2019-07-04 00:27:45.767652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.769272') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.773121"], ["reminded_at", "2019-07-04 00:27:45.773121"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.776344') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.780590') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "21nCjeGPTSfB4Yziqyqt"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:27:45.778067"], ["updated_at", "2019-07-04 00:27:45.782064"], ["created_at", "2019-07-04 00:27:45.782064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "21nCjeGPTSfB4Yziqyqt"], ["LIMIT", 1]]  (2.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.790817') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.794072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9pMpj2Gt4yDdiRpxfHG9"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.792930"], ["updated_at", "2019-07-04 00:27:45.795253"], ["created_at", "2019-07-04 00:27:45.795253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.804449') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.806941') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rAiqiaT5iL1qUHfz5vrs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.805857"], ["updated_at", "2019-07-04 00:27:45.808110"], ["created_at", "2019-07-04 00:27:45.808110"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.811369"], ["accepted_at", "2019-07-04 00:27:45.811369"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.816777"], ["updated_at", "2019-07-04 00:27:45.816777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.818460') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.821583') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "h39EqSuxMPWESZM8Lgiq"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:27:45.819828"], ["updated_at", "2019-07-04 00:27:45.822954"], ["created_at", "2019-07-04 00:27:45.822954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.832104"], ["updated_at", "2019-07-04 00:27:45.832104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.835632') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.858581') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jfeeS6gfB9L8Aofr9WAS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.857403"], ["updated_at", "2019-07-04 00:27:45.859803"], ["created_at", "2019-07-04 00:27:45.859803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "jfeeS6gfB9L8Aofr9WAS"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.869706"], ["accepted_at", "2019-07-04 00:27:45.869706"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.873006') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.878200') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "v3S3856A1EMCVzuGtnGZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.876899"], ["updated_at", "2019-07-04 00:27:45.879711"], ["created_at", "2019-07-04 00:27:45.879711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (2.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.893457"], ["updated_at", "2019-07-04 00:27:45.893457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.899479') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.903563') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xogQqztnkRFhHCQc4G9h"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.902278"], ["updated_at", "2019-07-04 00:27:45.904782"], ["created_at", "2019-07-04 00:27:45.904782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.906500') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.922336"], ["updated_at", "2019-07-04 00:27:45.922336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.924280"], ["updated_at", "2019-07-04 00:27:45.924280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.925510') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.927920') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "AsCfhWsx1JvJiFyBqt25"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.926900"], ["updated_at", "2019-07-04 00:27:45.929265"], ["created_at", "2019-07-04 00:27:45.929265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.933538"], ["accepted_at", "2019-07-04 00:27:45.933538"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.934663') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.936963') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qxUvhUzUMAsXGy8najwh"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.935929"], ["updated_at", "2019-07-04 00:27:45.938257"], ["created_at", "2019-07-04 00:27:45.938257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.942558') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.945629') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FVxZnDeLd5uissoj1pik"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.944445"], ["updated_at", "2019-07-04 00:27:45.946750"], ["created_at", "2019-07-04 00:27:45.946750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.968268"], ["updated_at", "2019-07-04 00:27:45.968268"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.974615"], ["updated_at", "2019-07-04 00:27:45.974615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.979374') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.6ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.996360"], ["updated_at", "2019-07-04 00:27:45.996360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.998366') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.7ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:46.005045') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ArFMMJmk8yWxzsUeVmPX"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:46.000635"], ["updated_at", "2019-07-04 00:27:46.008583"], ["created_at", "2019-07-04 00:27:46.008583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:46.011209') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Update (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:46.017802"], ["reminded_at", "2019-07-04 00:27:46.017802"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (11.2ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:46.034669"], ["updated_at", "2019-07-04 00:27:46.034669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:46.037594') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.457778') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.509255') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.511588') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tNbQVhPeVW9TtEdfkWN1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.510276"], ["updated_at", "2019-07-04 00:28:23.512856"], ["created_at", "2019-07-04 00:28:23.512856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.516997') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.530428') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.532738') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "som6sbNNcikwxCSNP6yD"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:28:23.531739"], ["updated_at", "2019-07-04 00:28:23.533621"], ["created_at", "2019-07-04 00:28:23.533621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "som6sbNNcikwxCSNP6yD"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.540604') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.543007') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iyWNacidcHiZGKh4fs3R"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.542048"], ["updated_at", "2019-07-04 00:28:23.543985"], ["created_at", "2019-07-04 00:28:23.543985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.548514"], ["accepted_at", "2019-07-04 00:28:23.548514"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.559943"], ["updated_at", "2019-07-04 00:28:23.559943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.570268"], ["updated_at", "2019-07-04 00:28:23.570268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.571888') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.574243') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "CqMAjVNsQMkMGYg9Aubh"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.573222"], ["updated_at", "2019-07-04 00:28:23.575222"], ["created_at", "2019-07-04 00:28:23.575222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.578915') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.584956"], ["updated_at", "2019-07-04 00:28:23.584956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.586758') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.589898') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PqVVEzhDSrjS3V2qxmrr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.588510"], ["updated_at", "2019-07-04 00:28:23.591508"], ["created_at", "2019-07-04 00:28:23.591508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.593701') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Project Create (0.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.600922"], ["updated_at", "2019-07-04 00:28:23.600922"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.604303') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.609956"], ["updated_at", "2019-07-04 00:28:23.609956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.612444"], ["updated_at", "2019-07-04 00:28:23.612444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.613907') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.620785"], ["updated_at", "2019-07-04 00:28:23.620785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.623667') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.629961') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.633090') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.637816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.640685') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (3.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.645219"], ["updated_at", "2019-07-04 00:28:23.645219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.652808') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.657478') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "w3HHK3zxqCrDnhcxNdpG"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:28:23.655810"], ["updated_at", "2019-07-04 00:28:23.659372"], ["created_at", "2019-07-04 00:28:23.659372"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (2.7ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.673155') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.676383') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "odhea5jntdycm4E3gJas"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.674896"], ["updated_at", "2019-07-04 00:28:23.677544"], ["created_at", "2019-07-04 00:28:23.677544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.683919"], ["updated_at", "2019-07-04 00:28:23.683919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.686034') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.690842') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "a32Am4aFmbyR2xKj1vjg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.688751"], ["updated_at", "2019-07-04 00:28:23.692412"], ["created_at", "2019-07-04 00:28:23.692412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.694396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.697493"], ["reminded_at", "2019-07-04 00:28:23.697493"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.701939') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.705074') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "DcFqEyKFiDvmYscpZnVZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.704021"], ["updated_at", "2019-07-04 00:28:23.706046"], ["created_at", "2019-07-04 00:28:23.706046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.707965"], ["accepted_at", "2019-07-04 00:28:23.707965"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.712908') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.716184') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6HuRtpXo8uittq9sPDZo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.715104"], ["updated_at", "2019-07-04 00:28:23.718966"], ["created_at", "2019-07-04 00:28:23.718966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.726191') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.732599') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HvsZZeZWFxnMLinkLMLY"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.729589"], ["updated_at", "2019-07-04 00:28:23.734808"], ["created_at", "2019-07-04 00:28:23.734808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.738491"], ["accepted_at", "2019-07-04 00:28:23.738491"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.743113"], ["updated_at", "2019-07-04 00:28:23.743113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.748319"], ["updated_at", "2019-07-04 00:28:23.748319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.750307') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.753221') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KsdbtcspNypQDqzgySth"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.752083"], ["updated_at", "2019-07-04 00:28:23.754689"], ["created_at", "2019-07-04 00:28:23.754689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.756863"], ["accepted_at", "2019-07-04 00:28:23.756863"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.758180') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.9ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.761059') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yL8JartCh6KH2G3UiG71"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.759333"], ["updated_at", "2019-07-04 00:28:23.763311"], ["created_at", "2019-07-04 00:28:23.763311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.768567') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.770943') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.773446') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.777485') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zkLqP7s6B2yYeC9sDmSF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:28:23.777055"], ["updated_at", "2019-07-04 00:28:23.778861"], ["created_at", "2019-07-04 00:28:23.778861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.782122') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.785496"], ["updated_at", "2019-07-04 00:28:23.785496"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (3.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.789694') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.795181') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gjtfz3spzekY2g1UPmp5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.794062"], ["updated_at", "2019-07-04 00:28:23.796466"], ["created_at", "2019-07-04 00:28:23.796466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "gjtfz3spzekY2g1UPmp5"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.813729"], ["accepted_at", "2019-07-04 00:28:23.813729"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.816966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.819501') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.822645"], ["updated_at", "2019-07-04 00:28:23.822645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.824469') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.827217') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.831083') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.834338') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (2.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.838100') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "UQDZVUgHBazohbbu6Aqc"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:28:23.835552"], ["updated_at", "2019-07-04 00:28:23.853161"], ["created_at", "2019-07-04 00:28:23.853161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "UQDZVUgHBazohbbu6Aqc"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.862955') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.866229') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Ss94MQbo7zurddFqCr5b"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.864969"], ["updated_at", "2019-07-04 00:28:23.867327"], ["created_at", "2019-07-04 00:28:23.867327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.872461') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.874312') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.876798"], ["updated_at", "2019-07-04 00:28:23.876798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.878168') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.882063') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.2ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.885544"], ["updated_at", "2019-07-04 00:28:23.885544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.887527') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.890505') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QzXtrmUxLVMbyc8yTwnp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.889382"], ["updated_at", "2019-07-04 00:28:23.891831"], ["created_at", "2019-07-04 00:28:23.891831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.893446') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.895970"], ["reminded_at", "2019-07-04 00:28:23.895970"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.898812') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.901500') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "wmsfVHgy1XZrs4kNdsqD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.900221"], ["updated_at", "2019-07-04 00:28:23.903265"], ["created_at", "2019-07-04 00:28:23.903265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.909296"], ["updated_at", "2019-07-04 00:28:23.909296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.911077') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.915040') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "SzRzf3PM739TQnucqZaq"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.912669"], ["updated_at", "2019-07-04 00:28:23.916900"], ["created_at", "2019-07-04 00:28:23.916900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.919878"], ["updated_at", "2019-07-04 00:28:23.919878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.921950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.925351') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "pd9ZkiPqjJTqgtcCH9iz"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:28:23.923871"], ["updated_at", "2019-07-04 00:28:23.926613"], ["created_at", "2019-07-04 00:28:23.926613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.929304') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.933943') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.938236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.209192"], ["updated_at", "2019-07-04 00:30:15.209192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.223791') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.265230') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ywZiMzP5FqbwqPYujxBs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.256288"], ["updated_at", "2019-07-04 00:30:15.266322"], ["created_at", "2019-07-04 00:30:15.266322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.268750') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.272317"], ["reminded_at", "2019-07-04 00:30:15.272317"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.275146') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.277723"], ["updated_at", "2019-07-04 00:30:15.277723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.278892') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.280242') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.281919') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.284026') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.286213') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.289913"], ["updated_at", "2019-07-04 00:30:15.289913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.291031') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.292630') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "CR51xfDzHqk1subAWfJv"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:30:15.291808"], ["updated_at", "2019-07-04 00:30:15.293694"], ["created_at", "2019-07-04 00:30:15.293694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.297841') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.301771') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "ZQR3TAeXVEusGUBX43rs"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:30:15.299599"], ["updated_at", "2019-07-04 00:30:15.303081"], ["created_at", "2019-07-04 00:30:15.303081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "ZQR3TAeXVEusGUBX43rs"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.313966"], ["updated_at", "2019-07-04 00:30:15.313966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.315930') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.318084') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "tcFgse8MyzwYpnNi6CfK"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.317201"], ["updated_at", "2019-07-04 00:30:15.319190"], ["created_at", "2019-07-04 00:30:15.319190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.320916"], ["updated_at", "2019-07-04 00:30:15.320916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.321985') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.323761') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "snH6R1zsVgjghqjLvEU5"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:30:15.322964"], ["updated_at", "2019-07-04 00:30:15.324725"], ["created_at", "2019-07-04 00:30:15.324725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.325964') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.328787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.331643') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "bEsFsGhezxutm6GGqAYW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.330317"], ["updated_at", "2019-07-04 00:30:15.333247"], ["created_at", "2019-07-04 00:30:15.333247"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.337041"], ["updated_at", "2019-07-04 00:30:15.337041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.338864') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.341418') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "BjKEzn1Z3Bans7sxwpJA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.340294"], ["updated_at", "2019-07-04 00:30:15.342551"], ["created_at", "2019-07-04 00:30:15.342551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.344575') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.351121') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MeMYqJZAJXZS9xo1vFVu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:30:15.350401"], ["updated_at", "2019-07-04 00:30:15.352855"], ["created_at", "2019-07-04 00:30:15.352855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.355496') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.359063') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.362119') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uHcr39cu8GPcs5Npoxzw"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.360798"], ["updated_at", "2019-07-04 00:30:15.363112"], ["created_at", "2019-07-04 00:30:15.363112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.365467"], ["accepted_at", "2019-07-04 00:30:15.365467"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.369065') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.371853') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "L8k1xxbf7mzYoSC1xSi8"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.370712"], ["updated_at", "2019-07-04 00:30:15.373058"], ["created_at", "2019-07-04 00:30:15.373058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.375912"], ["accepted_at", "2019-07-04 00:30:15.375912"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.380344') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.383459') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Q1LhpxRVSx9LzxA8jGzF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.382101"], ["updated_at", "2019-07-04 00:30:15.385008"], ["created_at", "2019-07-04 00:30:15.385008"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.392524') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.395064') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mEnYApiTDgfCsRiyniUK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.394082"], ["updated_at", "2019-07-04 00:30:15.395973"], ["created_at", "2019-07-04 00:30:15.395973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.397305') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.406555') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.408289') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.411201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.419746"], ["updated_at", "2019-07-04 00:30:15.419746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.423436') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.427866') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.432399"], ["updated_at", "2019-07-04 00:30:15.432399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.435710"], ["updated_at", "2019-07-04 00:30:15.435710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.437013') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.440012') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.441908') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.445692"], ["updated_at", "2019-07-04 00:30:15.445692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.448027') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.452122') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.454034') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.456400"], ["updated_at", "2019-07-04 00:30:15.456400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.457809') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.464757') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.468166') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.470718"], ["updated_at", "2019-07-04 00:30:15.470718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.472427"], ["updated_at", "2019-07-04 00:30:15.472427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.473679') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.479342') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "K9duQ75b7ngncKF7Pzxc"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.475697"], ["updated_at", "2019-07-04 00:30:15.491046"], ["created_at", "2019-07-04 00:30:15.491046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.496796') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.499276') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "3bDge1Z3sAs7sZbx6ZJL"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:30:15.498145"], ["updated_at", "2019-07-04 00:30:15.501208"], ["created_at", "2019-07-04 00:30:15.501208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "3bDge1Z3sAs7sZbx6ZJL"], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.511301') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.513603') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qXXHHPBHvpchmLWsoggH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.512638"], ["updated_at", "2019-07-04 00:30:15.514429"], ["created_at", "2019-07-04 00:30:15.514429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.523451"], ["updated_at", "2019-07-04 00:30:15.523451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.525025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.527674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "vehvkusWEHLmrNvchoDy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.526383"], ["updated_at", "2019-07-04 00:30:15.528817"], ["created_at", "2019-07-04 00:30:15.528817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.530304') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.534271"], ["reminded_at", "2019-07-04 00:30:15.534271"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.539154') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.541816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9ZY49v5h6Rappb4nUpbG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.540759"], ["updated_at", "2019-07-04 00:30:15.542874"], ["created_at", "2019-07-04 00:30:15.542874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.545465"], ["accepted_at", "2019-07-04 00:30:15.545465"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.5ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.550349"], ["updated_at", "2019-07-04 00:30:15.550349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.552479') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.555322') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cFRNUpJGi7eh1qC4EctB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.554164"], ["updated_at", "2019-07-04 00:30:15.556492"], ["created_at", "2019-07-04 00:30:15.556492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "cFRNUpJGi7eh1qC4EctB"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.558965"], ["accepted_at", "2019-07-04 00:30:15.558965"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.562543"], ["updated_at", "2019-07-04 00:30:15.562543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.564342"], ["updated_at", "2019-07-04 00:30:15.564342"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.566936') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.569767') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "bzvKV4zLe4oqsAAt9LWW"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.568699"], ["updated_at", "2019-07-04 00:30:15.571205"], ["created_at", "2019-07-04 00:30:15.571205"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.573321"], ["accepted_at", "2019-07-04 00:30:15.573321"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.574516') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.577887') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "LgxvRhjMmsWXVHisWUGx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.576382"], ["updated_at", "2019-07-04 00:30:15.579230"], ["created_at", "2019-07-04 00:30:15.579230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.583860') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.586864') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.590683') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.592921') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FSmLeAiHznzLRX9K3wqZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.591876"], ["updated_at", "2019-07-04 00:30:15.594267"], ["created_at", "2019-07-04 00:30:15.594267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.7ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.598772') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.466697') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.507403') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "r9DYUTJKKmJDtzyrWNnK"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:32:25.486072"], ["updated_at", "2019-07-04 00:32:25.508712"], ["created_at", "2019-07-04 00:32:25.508712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "r9DYUTJKKmJDtzyrWNnK"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.521051"], ["updated_at", "2019-07-04 00:32:25.521051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.523439') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.526137') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.545089"], ["updated_at", "2019-07-04 00:32:25.545089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.546756') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.548440') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "DZMWDGL38qk5VqrQKsHj"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.547784"], ["updated_at", "2019-07-04 00:32:25.549715"], ["created_at", "2019-07-04 00:32:25.549715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.551278"], ["updated_at", "2019-07-04 00:32:25.551278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.552114') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.554033') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "MTNaEnFKMXKNtkQuxzoe"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:32:25.553176"], ["updated_at", "2019-07-04 00:32:25.554883"], ["created_at", "2019-07-04 00:32:25.554883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.556024') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.558797') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.561009') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "dHLxAuj78rcPvCNoT3v2"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.560065"], ["updated_at", "2019-07-04 00:32:25.561918"], ["created_at", "2019-07-04 00:32:25.561918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.566696') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.569678') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.571564') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.573829') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "119EZGDCgr4eTDqHqmNG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.572845"], ["updated_at", "2019-07-04 00:32:25.574963"], ["created_at", "2019-07-04 00:32:25.574963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.577072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.588293"], ["updated_at", "2019-07-04 00:32:25.588293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.589923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.592534') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xaSw2PkHXCnH7SxpGfxb"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.591198"], ["updated_at", "2019-07-04 00:32:25.593621"], ["created_at", "2019-07-04 00:32:25.593621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.595265') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.598335"], ["reminded_at", "2019-07-04 00:32:25.598335"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.601834') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.604624') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "WVd1BShyRMBSRnczEyuA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.603377"], ["updated_at", "2019-07-04 00:32:25.605765"], ["created_at", "2019-07-04 00:32:25.605765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.608631"], ["accepted_at", "2019-07-04 00:32:25.608631"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.613431') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.615740') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "zYBZqn9Reeexv5vXZvXZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:32:25.614788"], ["updated_at", "2019-07-04 00:32:25.616986"], ["created_at", "2019-07-04 00:32:25.616986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "zYBZqn9Reeexv5vXZvXZ"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.625778') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.629211') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xpQ35oxJYRrXzxRpy3rj"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.627849"], ["updated_at", "2019-07-04 00:32:25.630359"], ["created_at", "2019-07-04 00:32:25.630359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.634611') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.636930') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.643634') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cjRsAHUX2s5eksvSAyLJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:32:25.643142"], ["updated_at", "2019-07-04 00:32:25.644698"], ["created_at", "2019-07-04 00:32:25.644698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.647049') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.650111') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.651926') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.653853') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.656944"], ["updated_at", "2019-07-04 00:32:25.656944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.659062"], ["updated_at", "2019-07-04 00:32:25.659062"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.660880') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (1.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.665596"], ["updated_at", "2019-07-04 00:32:25.665596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.668516"], ["updated_at", "2019-07-04 00:32:25.668516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.670025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.672210') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "GsbxGGzrsYDRTwXSyos7"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.671260"], ["updated_at", "2019-07-04 00:32:25.673244"], ["created_at", "2019-07-04 00:32:25.673244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.674974"], ["accepted_at", "2019-07-04 00:32:25.674974"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.676415') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.680052') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "S2qwy9gqvVMBxsxYE9oL"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.678202"], ["updated_at", "2019-07-04 00:32:25.681548"], ["created_at", "2019-07-04 00:32:25.681548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.685628"], ["updated_at", "2019-07-04 00:32:25.685628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.687295') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.689568') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TqBVY4yYxgytsQEdGohD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.688560"], ["updated_at", "2019-07-04 00:32:25.690480"], ["created_at", "2019-07-04 00:32:25.690480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.692336') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.702557"], ["updated_at", "2019-07-04 00:32:25.702557"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.705808') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.710693') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "58DrW7qzVvardyKjtV2g"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.707827"], ["updated_at", "2019-07-04 00:32:25.712479"], ["created_at", "2019-07-04 00:32:25.712479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.714187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.716309"], ["reminded_at", "2019-07-04 00:32:25.716309"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.719313') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.723505"], ["updated_at", "2019-07-04 00:32:25.723505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.725017') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.729072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gpxPybYwzMsig7fs9p4L"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.726548"], ["updated_at", "2019-07-04 00:32:25.730837"], ["created_at", "2019-07-04 00:32:25.730837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "gpxPybYwzMsig7fs9p4L"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.735493"], ["accepted_at", "2019-07-04 00:32:25.735493"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.739084') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.756150') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "AzvxcYUyDJQA2py5BQHV"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.752754"], ["updated_at", "2019-07-04 00:32:25.758444"], ["created_at", "2019-07-04 00:32:25.758444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.761673"], ["accepted_at", "2019-07-04 00:32:25.761673"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.765569"], ["updated_at", "2019-07-04 00:32:25.765569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.768045"], ["updated_at", "2019-07-04 00:32:25.768045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.768926') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.772742') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "gvx3UTBfdSpq6jBCRwZ1"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.771272"], ["updated_at", "2019-07-04 00:32:25.773977"], ["created_at", "2019-07-04 00:32:25.773977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.778251') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.780024') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.784173"], ["updated_at", "2019-07-04 00:32:25.784173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.786304') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.789378') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.791819') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.795309"], ["updated_at", "2019-07-04 00:32:25.795309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.796549') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.803061') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.806187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qH5XNaGJB5R6vqKhby3K"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.805155"], ["updated_at", "2019-07-04 00:32:25.807150"], ["created_at", "2019-07-04 00:32:25.807150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.812448"], ["updated_at", "2019-07-04 00:32:25.812448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.814233') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.821637') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.825001') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.828996') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.834650') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "7Zj1sdfJj4VjtUHcKcja"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.831186"], ["updated_at", "2019-07-04 00:32:25.836238"], ["created_at", "2019-07-04 00:32:25.836238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.840173') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.842826') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.844961') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.846680') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.850865') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ASF1pDaHXodtqJGyiHd5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.848959"], ["updated_at", "2019-07-04 00:32:25.852024"], ["created_at", "2019-07-04 00:32:25.852024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.854621"], ["accepted_at", "2019-07-04 00:32:25.854621"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.857908"], ["updated_at", "2019-07-04 00:32:25.857908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.859987') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.862237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "biRLXaThfsxP3rp2zZeX"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:32:25.861196"], ["updated_at", "2019-07-04 00:32:25.864284"], ["created_at", "2019-07-04 00:32:25.864284"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.7ms) rollback transaction  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.559339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.591590') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.595311') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.599840') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jK2cY4TD5sUHczgas1aK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:33:16.599308"], ["updated_at", "2019-07-04 00:33:16.600866"], ["created_at", "2019-07-04 00:33:16.600866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.604749') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.613480"], ["updated_at", "2019-07-04 00:33:16.613480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.616006') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.620398') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.622989') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.625665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.635624"], ["updated_at", "2019-07-04 00:33:16.635624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.637678"], ["updated_at", "2019-07-04 00:33:16.637678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.638799') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.641042') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Z36VHjGwycTQw1fAKJFr"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.639905"], ["updated_at", "2019-07-04 00:33:16.642512"], ["created_at", "2019-07-04 00:33:16.642512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.649209') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.651241') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.653245') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.655204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "D8AFsqzhakhJU56LPsoc"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.654344"], ["updated_at", "2019-07-04 00:33:16.656445"], ["created_at", "2019-07-04 00:33:16.656445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.662677"], ["updated_at", "2019-07-04 00:33:16.662677"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.664872') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.668040') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "zrCQpjswHac3sacqbtX1"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:33:16.666368"], ["updated_at", "2019-07-04 00:33:16.669279"], ["created_at", "2019-07-04 00:33:16.669279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.673363') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.676136') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "uPdM3Kqe7Bnq3FUzUM5a"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:33:16.674835"], ["updated_at", "2019-07-04 00:33:16.677339"], ["created_at", "2019-07-04 00:33:16.677339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "uPdM3Kqe7Bnq3FUzUM5a"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.684856') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.687235') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jtfizRdsbHyzqFaCtskt"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.686195"], ["updated_at", "2019-07-04 00:33:16.688266"], ["created_at", "2019-07-04 00:33:16.688266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.690140"], ["accepted_at", "2019-07-04 00:33:16.690140"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.695253"], ["updated_at", "2019-07-04 00:33:16.695253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.697644') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.699971') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.702482') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.705270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.710353') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.712697') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XjCrcMxy5rNAYzgi9Uxd"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.711663"], ["updated_at", "2019-07-04 00:33:16.713703"], ["created_at", "2019-07-04 00:33:16.713703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.720124"], ["updated_at", "2019-07-04 00:33:16.720124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.722360"], ["updated_at", "2019-07-04 00:33:16.722360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.723637') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.726733') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ZksqHJbjnQ5maL2DtwZ6"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.724920"], ["updated_at", "2019-07-04 00:33:16.728692"], ["created_at", "2019-07-04 00:33:16.728692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.730516"], ["accepted_at", "2019-07-04 00:33:16.730516"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.731729') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.736152') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "8pa9b486151h4zmNypKy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.734271"], ["updated_at", "2019-07-04 00:33:16.737969"], ["created_at", "2019-07-04 00:33:16.737969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.741429') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.744018') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "noU8wEA8pdxzvHbyQ6Zx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.742851"], ["updated_at", "2019-07-04 00:33:16.744880"], ["created_at", "2019-07-04 00:33:16.744880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.746636"], ["accepted_at", "2019-07-04 00:33:16.746636"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.749324"], ["updated_at", "2019-07-04 00:33:16.749324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.750704') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.752347') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ayiTEuXxYBXVzpSuX27T"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.751616"], ["updated_at", "2019-07-04 00:33:16.753070"], ["created_at", "2019-07-04 00:33:16.753070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.754157') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.757169') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.759543') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "W8fu73r1x9NgyaexAmfB"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:33:16.758552"], ["updated_at", "2019-07-04 00:33:16.760694"], ["created_at", "2019-07-04 00:33:16.760694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "W8fu73r1x9NgyaexAmfB"], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.780975"], ["updated_at", "2019-07-04 00:33:16.780975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.783458"], ["updated_at", "2019-07-04 00:33:16.783458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.784943') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.788114') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.789900') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.793217') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.795754') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2bVhsUcXWgGNWwypyJ5x"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.794598"], ["updated_at", "2019-07-04 00:33:16.797153"], ["created_at", "2019-07-04 00:33:16.797153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.801455') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.803735') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.806938"], ["updated_at", "2019-07-04 00:33:16.806938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.808447') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.812064') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.815958"], ["updated_at", "2019-07-04 00:33:16.815958"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.818093') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.822077"], ["updated_at", "2019-07-04 00:33:16.822077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.823674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.828785') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (3.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "4pULeYaPisBaypjhCMos"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.825567"], ["updated_at", "2019-07-04 00:33:16.831119"], ["created_at", "2019-07-04 00:33:16.831119"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "4pULeYaPisBaypjhCMos"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.841485"], ["accepted_at", "2019-07-04 00:33:16.841485"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.844134') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.846465') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QapYFs5DnAU1ZeJjGYYs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.845474"], ["updated_at", "2019-07-04 00:33:16.847342"], ["created_at", "2019-07-04 00:33:16.847342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.849133"], ["accepted_at", "2019-07-04 00:33:16.849133"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.851189') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.852986') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rpcvF1WHhXUtPniz23ZW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.852162"], ["updated_at", "2019-07-04 00:33:16.853755"], ["created_at", "2019-07-04 00:33:16.853755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.857033"], ["updated_at", "2019-07-04 00:33:16.857033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.858512') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.860471') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Es5taaRB54W34sL92J7z"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.859632"], ["updated_at", "2019-07-04 00:33:16.861276"], ["created_at", "2019-07-04 00:33:16.861276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.863762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.867474"], ["reminded_at", "2019-07-04 00:33:16.867474"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.870382') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.872687') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "CMNknjmps6npAETZBzmv"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.871711"], ["updated_at", "2019-07-04 00:33:16.874077"], ["created_at", "2019-07-04 00:33:16.874077"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.876436') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.887546') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.889646') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.892072"], ["updated_at", "2019-07-04 00:33:16.892072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.893865') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.896091') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KDHzTQntHQGs7WZHsVyu"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.895022"], ["updated_at", "2019-07-04 00:33:16.898336"], ["created_at", "2019-07-04 00:33:16.898336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.901105"], ["updated_at", "2019-07-04 00:33:16.901105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.902661') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.904860') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "GKjPSUHZV8NiFK1qrKpa"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:33:16.903879"], ["updated_at", "2019-07-04 00:33:16.905872"], ["created_at", "2019-07-04 00:33:16.905872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.907148') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.9ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.911234"], ["updated_at", "2019-07-04 00:33:16.911234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.914052') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.919732') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xqNUAzz1YJptNQY1y5fK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.917210"], ["updated_at", "2019-07-04 00:33:16.922189"], ["created_at", "2019-07-04 00:33:16.922189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.925671') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.929071"], ["reminded_at", "2019-07-04 00:33:16.929071"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol -------------------------------------------------------- Proposal::Token Load (1.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.567241') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.636878') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ProposalTest: test_should_create_a_new_token_if_accepted_token_exists ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (1.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.649297"], ["updated_at", "2019-07-04 00:34:40.649297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Create (2.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.656133"], ["updated_at", "2019-07-04 00:34:40.656133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.663339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.671423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (7.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "aMya27Xayv15zEdCMqSS"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.667673"], ["updated_at", "2019-07-04 00:34:40.672718"], ["created_at", "2019-07-04 00:34:40.672718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.687192"], ["accepted_at", "2019-07-04 00:34:40.687192"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.689132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.692518') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "9WUzv8HBbQnEp7zopynU"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.691291"], ["updated_at", "2019-07-04 00:34:40.694019"], ["created_at", "2019-07-04 00:34:40.694019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------ ProposalTest: test_should_not_return_proposal_instance ------------------------------------------------------ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.697155') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_accept_a_resource -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.701322"], ["updated_at", "2019-07-04 00:34:40.701322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.716886') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.721887') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "8DmTQ9ggNvpB6Mn9Fysz"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.720558"], ["updated_at", "2019-07-04 00:34:40.723473"], ["created_at", "2019-07-04 00:34:40.723473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.725131"], ["updated_at", "2019-07-04 00:34:40.725131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.725885') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.729501') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]] Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "jxEjF18ivANpTmkSE8pp"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:34:40.728423"], ["updated_at", "2019-07-04 00:34:40.731316"], ["created_at", "2019-07-04 00:34:40.731316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.733218') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_notify -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.742029"], ["updated_at", "2019-07-04 00:34:40.742029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.743613') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.745009') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.746885') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_resource_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.749790"], ["updated_at", "2019-07-04 00:34:40.749790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.752283"], ["updated_at", "2019-07-04 00:34:40.752283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.753361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.754982') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "f69yegaswFmbDs6bwbK7"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.754257"], ["updated_at", "2019-07-04 00:34:40.756458"], ["created_at", "2019-07-04 00:34:40.756458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_find_and_accept_proposal --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.772052"], ["updated_at", "2019-07-04 00:34:40.772052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.773229') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.784549') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (17.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "nAJ6fmuaK8RgCd93FYsD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.782819"], ["updated_at", "2019-07-04 00:34:40.785850"], ["created_at", "2019-07-04 00:34:40.785850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "nAJ6fmuaK8RgCd93FYsD"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.808897"], ["accepted_at", "2019-07-04 00:34:40.808897"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted ----------------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.811447') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (1.8ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.815541') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "aAxtmrdT2eMJ2N4q1P1x"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.812623"], ["updated_at", "2019-07-04 00:34:40.819881"], ["created_at", "2019-07-04 00:34:40.819881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.822245"], ["accepted_at", "2019-07-04 00:34:40.822245"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_bang -------------------------------------------  (0.2ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.826275"], ["updated_at", "2019-07-04 00:34:40.826275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.828054') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (1.0ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.833237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MYrjZ1MHVfV64qswU4EQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.830238"], ["updated_at", "2019-07-04 00:34:40.834501"], ["created_at", "2019-07-04 00:34:40.834501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.836554') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.840692"], ["reminded_at", "2019-07-04 00:34:40.840692"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_return_proposal_instance --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.845256"], ["updated_at", "2019-07-04 00:34:40.845256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.847285') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.851059') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_token_from_to_s_method ------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.854346') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.857457') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QRBHevHgbLkCqrqJrDyq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.855766"], ["updated_at", "2019-07-04 00:34:40.859246"], ["created_at", "2019-07-04 00:34:40.859246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- ProposalTest: test_should_respond_to_the_recipient --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.865912"], ["updated_at", "2019-07-04 00:34:40.865912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.867913') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_raise_error_if_remind_is_not_true ----------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.872237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (1.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.874779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_return_proposals_for_proposer_instance ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.882350"], ["updated_at", "2019-07-04 00:34:40.882350"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.884670') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.887444') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qrmDWwSH6JoFfEZoNuy9"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:34:40.886058"], ["updated_at", "2019-07-04 00:34:40.888723"], ["created_at", "2019-07-04 00:34:40.888723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]  (1.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ ProposalTest: test_should_return_hash_when_arguments_is_hash ------------------------------------------------------------ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.895368') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.899750') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "UyBNtTmj3TjP4xascSt6"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:34:40.898050"], ["updated_at", "2019-07-04 00:34:40.901173"], ["created_at", "2019-07-04 00:34:40.901173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "UyBNtTmj3TjP4xascSt6"], ["LIMIT", 1]]  (4.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ ProposalTest: test_should_have_action_remind_for_invite_(new_user) ------------------------------------------------------------------ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.916411') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.920104') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "WqtsTBD9HDJ8YLFkULSr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.918674"], ["updated_at", "2019-07-04 00:34:40.958749"], ["created_at", "2019-07-04 00:34:40.958749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.961172') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe ---------------------------------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.970236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (5.7ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.972903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PtZqPmu1CAYe7w6aYbFe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.972076"], ["updated_at", "2019-07-04 00:34:40.979525"], ["created_at", "2019-07-04 00:34:40.979525"]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.984702"], ["accepted_at", "2019-07-04 00:34:40.984702"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ProposalTest: test_should_respond_to_the_resource -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.989844"], ["updated_at", "2019-07-04 00:34:40.989844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.999617"], ["updated_at", "2019-07-04 00:34:40.999617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.002000') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (1.0ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------- ProposalTest: test_should_have_action_remind_for_notify_(existing_user) -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:41.013351"], ["updated_at", "2019-07-04 00:34:41.013351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.015950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.019628') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ywgWWXc8pSMjNHvSKvz2"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.017518"], ["updated_at", "2019-07-04 00:34:41.021169"], ["created_at", "2019-07-04 00:34:41.021169"]]  (1.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.024624') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_not_create_a_new_token_if_token_exists ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.035654') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "W77635ELZsBPvcCzzhgM"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:34:41.035103"], ["updated_at", "2019-07-04 00:34:41.036999"], ["created_at", "2019-07-04 00:34:41.036999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.039779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------- ProposalTest: test_should_return_all_arguments ---------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.048451') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.051074') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "wsBoreFk5jWcq7EUce2z"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:34:41.049966"], ["updated_at", "2019-07-04 00:34:41.051893"], ["created_at", "2019-07-04 00:34:41.051893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "wsBoreFk5jWcq7EUce2z"], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- ProposalTest: test_should_not_return_proposal_action_invite ----------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.056183') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (1.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.070779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.079709') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProposalTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_a_proc -------------------------------------------------------- Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.088141') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.089880') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- ProposalTest: test_should_set_reminded_safe -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:41.092175"], ["updated_at", "2019-07-04 00:34:41.092175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.094288') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.099067') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "AF3NzVdW7FwCwGZmnrj5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.097532"], ["updated_at", "2019-07-04 00:34:41.100317"], ["created_at", "2019-07-04 00:34:41.100317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.103472') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:41.106215"], ["reminded_at", "2019-07-04 00:34:41.106215"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------- ProposalTest: test_should_return_the_resource ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:41.111770"], ["updated_at", "2019-07-04 00:34:41.111770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.114011') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- ProposalTest: test_user_should_have_proposal -------------------------------------------- Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.119261') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbols --------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.123340') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.128603') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- ProposalTest: test_should_return_all_proposals_for_type ------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.133402') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.137059') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MxsmsNypSxbYmxaQgWyf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.135380"], ["updated_at", "2019-07-04 00:34:41.138731"], ["created_at", "2019-07-04 00:34:41.138731"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- ProposalTest: test_should_create_valid_proposal_token ----------------------------------------------------- Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.149381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.153097') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mWFa9HT8tKRC6y58FF76"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.151512"], ["updated_at", "2019-07-04 00:34:41.154391"], ["created_at", "2019-07-04 00:34:41.154391"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- ProposalTest: test_should_not_return_no_action_if_accepted ---------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.161489') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.6ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.166051') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "sgyLmxTenNRG91WL3yKo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.163291"], ["updated_at", "2019-07-04 00:34:41.167603"], ["created_at", "2019-07-04 00:34:41.167603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Update (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:41.170537"], ["accepted_at", "2019-07-04 00:34:41.170537"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- ProposalTest: test_should_add_errors_when_not_acceptable_expired ---------------------------------------------------------------- Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.176201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.179664') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Create (2.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gzowRVRpqH52pHrztQhe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.178324"], ["updated_at", "2019-07-04 00:34:41.181612"], ["created_at", "2019-07-04 00:34:41.181612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProposalTest: test_should_validate_arguments_with_symbol_and_args ----------------------------------------------------------------- Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.190954') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]] Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.196748') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]  (0.2ms) rollback transaction