proposal 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77860bb6b7c6083bf2954e3fc7dc6df17a62f17f75f09c6c5a76a7d1c50072dd
4
- data.tar.gz: 14dc1e863e2dc2df8176ecb412b867dd84e70bbe81bc37f3c500a9ec605789e5
3
+ metadata.gz: e8a2c749f663e603d13c7c555fafa60f00ab8147bcbd1fbf9401c8fa3d05a265
4
+ data.tar.gz: 34f45d5a51699e385a805fbfd83078096ec21ff6b7bb29d5d437684236f1c6df
5
5
  SHA512:
6
- metadata.gz: 3d8deed2054c9642dfcf9e096c09d1a0811cde8a4fec57f1fe96eb70dbe69d50a960469137510b66722585401979d5235962b7f5952ae6dc33d423763c0d53d6
7
- data.tar.gz: e8bc87c3b819c64c52ea33d8f14b6acd06b5a95258cadea393ab4fb02ce3c30df873d7623efa74f59a473cb74d2b0fa7db8f90ca52c5a0b839eee50af8c9dbe1
6
+ metadata.gz: c2444d77aa4436632d0bf5c5bfa5b02e606bbcb6f652b1fa6dbb48c5dc7a223853fdf7b438a10765bfe65ce74dfbc72d4b3d49f39225aa130c9d35b9d083ef41
7
+ data.tar.gz: d5cc8fdec8b60d14d5e7244a8afa5befe0e51f1312988115efdd8eb0a6a0cd2ed2192495a256fca37db741717ec3ff7fb7a112ad7a27d28adc211367a547b50a
@@ -2,7 +2,7 @@ module Proposal
2
2
  class Token < ActiveRecord::Base
3
3
 
4
4
  belongs_to :resource, polymorphic: true, optional: true
5
- belongs_to :proposer, polymorphic: true
5
+ belongs_to :proposer, polymorphic: true, optional: true
6
6
 
7
7
  serialize :arguments
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Proposal
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -1,4 +1,4 @@
1
- class CreateUsers < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration[5.0]
2
2
  def change
3
3
  create_table :users do |t|
4
4
  t.string :email
@@ -1,4 +1,4 @@
1
- class CreateProjects < ActiveRecord::Migration
1
+ class CreateProjects < ActiveRecord::Migration[5.0]
2
2
  def change
3
3
  create_table :projects do |t|
4
4
 
@@ -13921,3 +13921,2385 @@ ProposalTest: test_should_validate_arguments_with_symbol_and_args
13921
13921
  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]]
13922
13922
  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]]
13923
13923
   (0.2ms) rollback transaction
13924
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13925
+  (0.1ms) begin transaction
13926
+ ---------------------------------------------
13927
+ ProposalTest: test_should_return_the_resource
13928
+ ---------------------------------------------
13929
+  (0.1ms) SAVEPOINT active_record_1
13930
+ Project Create (22.0ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:50:05.038491"], ["updated_at", "2019-07-04 04:50:05.038491"]]
13931
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13932
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.125644') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
13933
+  (0.7ms) rollback transaction
13934
+  (0.1ms) begin transaction
13935
+ --------------------------------------------------
13936
+ ProposalTest: test_should_respond_to_the_recipient
13937
+ --------------------------------------------------
13938
+  (0.1ms) SAVEPOINT active_record_1
13939
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.159261"], ["updated_at", "2019-07-04 04:50:05.159261"]]
13940
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13941
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.160987') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13942
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13943
+  (0.4ms) rollback transaction
13944
+  (0.1ms) begin transaction
13945
+ -----------------------------------------------------------
13946
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
13947
+ -----------------------------------------------------------
13948
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.166137') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13949
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.167802') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13950
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13951
+  (0.1ms) rollback transaction
13952
+  (0.1ms) begin transaction
13953
+ -----------------------------------------------------
13954
+ ProposalTest: test_should_create_valid_proposal_token
13955
+ -----------------------------------------------------
13956
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.170067') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13957
+  (0.1ms) SAVEPOINT active_record_1
13958
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.171939') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13959
+ Proposal::Token Create (1.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "3NEca7qrQkRngySyAkRf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.171093"], ["updated_at", "2019-07-04 04:50:05.172697"], ["created_at", "2019-07-04 04:50:05.172697"]]
13960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13961
+  (0.5ms) rollback transaction
13962
+  (0.1ms) begin transaction
13963
+ ---------------------------------------------------------
13964
+ ProposalTest: test_should_validate_arguments_with_symbols
13965
+ ---------------------------------------------------------
13966
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.176418') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13967
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.178078') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13968
+  (0.1ms) rollback transaction
13969
+  (0.0ms) begin transaction
13970
+ --------------------------------------------
13971
+ ProposalTest: test_user_should_have_proposal
13972
+ --------------------------------------------
13973
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.179627') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13974
+  (0.0ms) rollback transaction
13975
+  (0.0ms) begin transaction
13976
+ ----------------------------------------------
13977
+ ProposalTest: test_should_return_all_arguments
13978
+ ----------------------------------------------
13979
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.181255') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13980
+  (0.0ms) SAVEPOINT active_record_1
13981
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.182716') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13982
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "SgspZy1yxeJHyps2wQvF"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 04:50:05.182006"], ["updated_at", "2019-07-04 04:50:05.183768"], ["created_at", "2019-07-04 04:50:05.183768"]]
13983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13984
+ 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", "SgspZy1yxeJHyps2wQvF"], ["LIMIT", 1]]
13985
+  (0.7ms) rollback transaction
13986
+  (0.1ms) begin transaction
13987
+ ------------------------------------------------------------------
13988
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
13989
+ ------------------------------------------------------------------
13990
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.189812') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13991
+  (0.0ms) SAVEPOINT active_record_1
13992
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.191848') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13993
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XxzpAJRxtKy8dyMucHSx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.190973"], ["updated_at", "2019-07-04 04:50:05.192746"], ["created_at", "2019-07-04 04:50:05.192746"]]
13994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13995
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.193974') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13996
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13997
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13998
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13999
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14000
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14001
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14002
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14003
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14004
+  (0.5ms) rollback transaction
14005
+  (0.1ms) begin transaction
14006
+ ----------------------------------------------------------------
14007
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
14008
+ ----------------------------------------------------------------
14009
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.199561') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14010
+  (0.1ms) SAVEPOINT active_record_1
14011
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.201658') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14012
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pDod5sRuAMUo87SAcCWD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.200893"], ["updated_at", "2019-07-04 04:50:05.202468"], ["created_at", "2019-07-04 04:50:05.202468"]]
14013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14014
+  (0.6ms) rollback transaction
14015
+  (0.0ms) begin transaction
14016
+ ----------------------------------------------------------------------
14017
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
14018
+ ----------------------------------------------------------------------
14019
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.206160') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14020
+  (0.0ms) SAVEPOINT active_record_1
14021
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.207769') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14022
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qjAxMLYsHNoTAqHx4QBz"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.207077"], ["updated_at", "2019-07-04 04:50:05.208424"], ["created_at", "2019-07-04 04:50:05.208424"]]
14023
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14024
+  (0.2ms) SAVEPOINT active_record_1
14025
+ Proposal::Token Update (0.7ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:50:05.210647"], ["accepted_at", "2019-07-04 04:50:05.210647"], ["id", 1]]
14026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14027
+  (0.5ms) rollback transaction
14028
+  (0.0ms) begin transaction
14029
+ --------------------------------------------------
14030
+ ProposalTest: test_should_return_proposal_instance
14031
+ --------------------------------------------------
14032
+  (0.0ms) SAVEPOINT active_record_1
14033
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.214049"], ["updated_at", "2019-07-04 04:50:05.214049"]]
14034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14035
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.215188') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14036
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14037
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.217542') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14038
+  (0.5ms) rollback transaction
14039
+  (0.0ms) begin transaction
14040
+ ----------------------------------------------------------------
14041
+ ProposalTest: test_should_return_proposals_for_proposer_instance
14042
+ ----------------------------------------------------------------
14043
+  (0.1ms) SAVEPOINT active_record_1
14044
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.219989"], ["updated_at", "2019-07-04 04:50:05.219989"]]
14045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14046
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.221887') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14047
+  (0.0ms) SAVEPOINT active_record_1
14048
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.223996') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14049
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "iWBvnLAYxhisSEfgyTaj"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 04:50:05.222847"], ["updated_at", "2019-07-04 04:50:05.224928"], ["created_at", "2019-07-04 04:50:05.224928"]]
14050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14051
+ 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]]
14052
+  (0.4ms) rollback transaction
14053
+  (0.1ms) begin transaction
14054
+ -------------------------------------------
14055
+ ProposalTest: test_should_accept_a_resource
14056
+ -------------------------------------------
14057
+  (0.1ms) SAVEPOINT active_record_1
14058
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:50:05.228156"], ["updated_at", "2019-07-04 04:50:05.228156"]]
14059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14060
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.229250') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14061
+  (0.0ms) SAVEPOINT active_record_1
14062
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.230779') 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]]
14063
+ 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", "d1bmgEeS8KbVDxXXYRnr"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:50:05.230094"], ["updated_at", "2019-07-04 04:50:05.231489"], ["created_at", "2019-07-04 04:50:05.231489"]]
14064
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14065
+  (0.0ms) SAVEPOINT active_record_1
14066
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:50:05.232762"], ["updated_at", "2019-07-04 04:50:05.232762"]]
14067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14068
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.233961') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14069
+  (0.1ms) SAVEPOINT active_record_1
14070
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.235692') 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]]
14071
+ 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", "eTjgsGmzJ9sPJiyRY4zT"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 04:50:05.234944"], ["updated_at", "2019-07-04 04:50:05.236664"], ["created_at", "2019-07-04 04:50:05.236664"]]
14072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14073
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.238940') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14074
+  (0.5ms) rollback transaction
14075
+  (0.0ms) begin transaction
14076
+ ------------------------
14077
+ ProposalTest: test_truth
14078
+ ------------------------
14079
+  (0.0ms) rollback transaction
14080
+  (0.0ms) begin transaction
14081
+ ------------------------------------------------------------
14082
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
14083
+ ------------------------------------------------------------
14084
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.241551') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14085
+  (0.0ms) SAVEPOINT active_record_1
14086
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.243191') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14087
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "CmvWGwDk4PGDxszpQpLF"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 04:50:05.242455"], ["updated_at", "2019-07-04 04:50:05.243837"], ["created_at", "2019-07-04 04:50:05.243837"]]
14088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14089
+ 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", "CmvWGwDk4PGDxszpQpLF"], ["LIMIT", 1]]
14090
+  (0.4ms) rollback transaction
14091
+  (0.0ms) begin transaction
14092
+ --------------------------------------------------
14093
+ ProposalTest: test_should_find_and_accept_proposal
14094
+ --------------------------------------------------
14095
+  (0.0ms) SAVEPOINT active_record_1
14096
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.247964"], ["updated_at", "2019-07-04 04:50:05.247964"]]
14097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14098
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.249099') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14099
+  (0.1ms) SAVEPOINT active_record_1
14100
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.251382') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14101
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "AjQBG1fEyypWwqpBDZHE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.250213"], ["updated_at", "2019-07-04 04:50:05.252261"], ["created_at", "2019-07-04 04:50:05.252261"]]
14102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14103
+ 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", "AjQBG1fEyypWwqpBDZHE"], ["LIMIT", 1]]
14104
+  (0.1ms) SAVEPOINT active_record_1
14105
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:50:05.255088"], ["accepted_at", "2019-07-04 04:50:05.255088"], ["id", 1]]
14106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14107
+  (0.4ms) rollback transaction
14108
+  (0.0ms) begin transaction
14109
+ -----------------------------------------------------------------
14110
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
14111
+ -----------------------------------------------------------------
14112
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.257181') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14113
+  (0.0ms) SAVEPOINT active_record_1
14114
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.258884') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14115
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xSuMu5JU6ShqfGz2xsWs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.258163"], ["updated_at", "2019-07-04 04:50:05.259570"], ["created_at", "2019-07-04 04:50:05.259570"]]
14116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14117
+  (0.0ms) SAVEPOINT active_record_1
14118
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:50:05.260906"], ["accepted_at", "2019-07-04 04:50:05.260906"], ["id", 1]]
14119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14120
+  (0.4ms) rollback transaction
14121
+  (0.0ms) begin transaction
14122
+ ----------------------------------------------------------
14123
+ ProposalTest: test_should_not_return_no_action_if_accepted
14124
+ ----------------------------------------------------------
14125
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.262950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14126
+  (0.1ms) SAVEPOINT active_record_1
14127
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.264833') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14128
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "8zsSrrdsvxjkVyypTQNy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.264062"], ["updated_at", "2019-07-04 04:50:05.265527"], ["created_at", "2019-07-04 04:50:05.265527"]]
14129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14130
+  (0.1ms) SAVEPOINT active_record_1
14131
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:50:05.267750"], ["accepted_at", "2019-07-04 04:50:05.267750"], ["id", 1]]
14132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14133
+  (0.6ms) rollback transaction
14134
+  (0.1ms) begin transaction
14135
+ -------------------------------------------------------
14136
+ ProposalTest: test_should_return_all_proposals_for_type
14137
+ -------------------------------------------------------
14138
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.270270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14139
+  (0.1ms) SAVEPOINT active_record_1
14140
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.272715') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14141
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "m6QhHHjb8NQj9zYHi4oM"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.271911"], ["updated_at", "2019-07-04 04:50:05.273557"], ["created_at", "2019-07-04 04:50:05.273557"]]
14142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14143
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
14144
+  (0.5ms) rollback transaction
14145
+  (0.1ms) begin transaction
14146
+ -------------------------------------------
14147
+ ProposalTest: test_should_set_reminded_safe
14148
+ -------------------------------------------
14149
+  (0.1ms) SAVEPOINT active_record_1
14150
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.276939"], ["updated_at", "2019-07-04 04:50:05.276939"]]
14151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14152
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.278056') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14153
+  (0.1ms) SAVEPOINT active_record_1
14154
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.292105') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14155
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "pkPM7Kycyg6tU8S69iZH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.291341"], ["updated_at", "2019-07-04 04:50:05.292824"], ["created_at", "2019-07-04 04:50:05.292824"]]
14156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14157
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.293868') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14158
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14159
+  (0.0ms) SAVEPOINT active_record_1
14160
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:50:05.295453"], ["reminded_at", "2019-07-04 04:50:05.295453"], ["id", 1]]
14161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14162
+  (0.4ms) rollback transaction
14163
+  (0.0ms) begin transaction
14164
+ --------------------------------------------------------
14165
+ ProposalTest: test_should_validate_arguments_with_a_proc
14166
+ --------------------------------------------------------
14167
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.297256') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14168
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.298661') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14169
+  (0.1ms) rollback transaction
14170
+  (0.1ms) begin transaction
14171
+ -----------------------------------------------------------------------
14172
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
14173
+ -----------------------------------------------------------------------
14174
+  (0.1ms) SAVEPOINT active_record_1
14175
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.300914"], ["updated_at", "2019-07-04 04:50:05.300914"]]
14176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14177
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.302243') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14178
+  (0.0ms) SAVEPOINT active_record_1
14179
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.304183') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14180
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xc6G1UDRWgfWtnAZwgFC"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.303243"], ["updated_at", "2019-07-04 04:50:05.305530"], ["created_at", "2019-07-04 04:50:05.305530"]]
14181
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14182
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.306962') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14183
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14184
+  (0.4ms) rollback transaction
14185
+  (0.0ms) begin transaction
14186
+ --------------------------------------------------------
14187
+ ProposalTest: test_should_validate_arguments_with_symbol
14188
+ --------------------------------------------------------
14189
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.310186') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14190
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.311580') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14191
+  (0.0ms) rollback transaction
14192
+  (0.0ms) begin transaction
14193
+ ----------------------------------------------------------------
14194
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
14195
+ ----------------------------------------------------------------
14196
+  (0.1ms) SAVEPOINT active_record_1
14197
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.313747') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14198
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xdDQQRy3AmzyzSZtoZE7"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 04:50:05.313449"], ["updated_at", "2019-07-04 04:50:05.314487"], ["created_at", "2019-07-04 04:50:05.314487"]]
14199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14200
+  (0.0ms) SAVEPOINT active_record_1
14201
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.316138') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14202
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
14203
+  (0.5ms) rollback transaction
14204
+  (0.0ms) begin transaction
14205
+ -------------------------------------------------------
14206
+ ProposalTest: test_should_return_token_from_to_s_method
14207
+ -------------------------------------------------------
14208
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.318753') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14209
+  (0.1ms) SAVEPOINT active_record_1
14210
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.321345') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14211
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "wF1t11k49NjJvksfF4by"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.319981"], ["updated_at", "2019-07-04 04:50:05.322651"], ["created_at", "2019-07-04 04:50:05.322651"]]
14212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14213
+  (0.4ms) rollback transaction
14214
+  (0.0ms) begin transaction
14215
+ -------------------------------------------------
14216
+ ProposalTest: test_should_respond_to_the_resource
14217
+ -------------------------------------------------
14218
+  (0.1ms) SAVEPOINT active_record_1
14219
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.325236"], ["updated_at", "2019-07-04 04:50:05.325236"]]
14220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14221
+  (0.0ms) SAVEPOINT active_record_1
14222
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:50:05.326528"], ["updated_at", "2019-07-04 04:50:05.326528"]]
14223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14224
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.327421') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14225
+  (0.4ms) rollback transaction
14226
+  (0.0ms) begin transaction
14227
+ ------------------------------------------------------
14228
+ ProposalTest: test_should_not_return_proposal_instance
14229
+ ------------------------------------------------------
14230
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.329710') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14231
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14232
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14233
+  (0.0ms) rollback transaction
14234
+  (0.0ms) begin transaction
14235
+ -----------------------------------------------------------------
14236
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
14237
+ -----------------------------------------------------------------
14238
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.332186') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14239
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.334482') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14240
+  (0.0ms) rollback transaction
14241
+  (0.0ms) begin transaction
14242
+ -------------------------------------------
14243
+ ProposalTest: test_should_set_reminded_bang
14244
+ -------------------------------------------
14245
+  (0.1ms) SAVEPOINT active_record_1
14246
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.336801"], ["updated_at", "2019-07-04 04:50:05.336801"]]
14247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14248
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.338793') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14249
+  (0.0ms) SAVEPOINT active_record_1
14250
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.340381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14251
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ocNrNwy7C9s3phjt3psH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:50:05.339697"], ["updated_at", "2019-07-04 04:50:05.341012"], ["created_at", "2019-07-04 04:50:05.341012"]]
14252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14253
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.342003') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14254
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14255
+  (0.0ms) SAVEPOINT active_record_1
14256
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:50:05.343676"], ["reminded_at", "2019-07-04 04:50:05.343676"], ["id", 1]]
14257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14258
+  (0.4ms) rollback transaction
14259
+  (0.0ms) begin transaction
14260
+ ---------------------------------------------------------------------
14261
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
14262
+ ---------------------------------------------------------------------
14263
+  (0.1ms) SAVEPOINT active_record_1
14264
+ Project Create (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:50:05.345791"], ["updated_at", "2019-07-04 04:50:05.345791"]]
14265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14266
+  (0.0ms) SAVEPOINT active_record_1
14267
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.347097"], ["updated_at", "2019-07-04 04:50:05.347097"]]
14268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14269
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.347926') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14270
+  (0.1ms) SAVEPOINT active_record_1
14271
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.350028') 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]]
14272
+ 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", "XUzTkApssewDdtMBZHga"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:50:05.349005"], ["updated_at", "2019-07-04 04:50:05.351275"], ["created_at", "2019-07-04 04:50:05.351275"]]
14273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14274
+  (0.0ms) SAVEPOINT active_record_1
14275
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:50:05.352564"], ["accepted_at", "2019-07-04 04:50:05.352564"], ["id", 1]]
14276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14277
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.353512') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14278
+  (0.1ms) SAVEPOINT active_record_1
14279
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.355870') 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]]
14280
+ 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", "zzCZUqAqvxmsh7ewSsgB"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:50:05.354713"], ["updated_at", "2019-07-04 04:50:05.356708"], ["created_at", "2019-07-04 04:50:05.356708"]]
14281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14282
+  (0.5ms) rollback transaction
14283
+  (0.0ms) begin transaction
14284
+ -----------------------------------------------------------
14285
+ ProposalTest: test_should_not_return_proposal_action_invite
14286
+ -----------------------------------------------------------
14287
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.358940') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14288
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.360352') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14289
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14290
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.361646') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14291
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14292
+  (0.0ms) rollback transaction
14293
+  (0.0ms) begin transaction
14294
+ ----------------------------------------------------------------
14295
+ ProposalTest: test_should_return_proposals_for_resource_instance
14296
+ ----------------------------------------------------------------
14297
+  (0.1ms) SAVEPOINT active_record_1
14298
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.363717"], ["updated_at", "2019-07-04 04:50:05.363717"]]
14299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14300
+  (0.0ms) SAVEPOINT active_record_1
14301
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:50:05.365019"], ["updated_at", "2019-07-04 04:50:05.365019"]]
14302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14303
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.365819') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14304
+  (0.1ms) SAVEPOINT active_record_1
14305
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.367919') 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]]
14306
+ 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", "z9zmYpLjhLVUgNux431t"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:50:05.366989"], ["updated_at", "2019-07-04 04:50:05.368762"], ["created_at", "2019-07-04 04:50:05.368762"]]
14307
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14308
+ 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]]
14309
+  (0.6ms) rollback transaction
14310
+  (0.0ms) begin transaction
14311
+ -----------------------------------------------------------
14312
+ ProposalTest: test_should_not_return_proposal_action_notify
14313
+ -----------------------------------------------------------
14314
+  (0.1ms) SAVEPOINT active_record_1
14315
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:50:05.373876"], ["updated_at", "2019-07-04 04:50:05.373876"]]
14316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14317
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.375002') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14318
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.376272') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14319
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14320
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:50:05.377642') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14321
+  (0.4ms) rollback transaction
14322
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14323
+  (0.1ms) begin transaction
14324
+ -------------------------------------------
14325
+ ProposalTest: test_should_set_reminded_bang
14326
+ -------------------------------------------
14327
+  (0.1ms) SAVEPOINT active_record_1
14328
+ User Create (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.494398"], ["updated_at", "2019-07-04 04:52:37.494398"]]
14329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14330
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.508599') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14331
+  (0.1ms) SAVEPOINT active_record_1
14332
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.547207') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14333
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "5k1Y5XcW3T86J4ueeRhd"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.537971"], ["updated_at", "2019-07-04 04:52:37.548285"], ["created_at", "2019-07-04 04:52:37.548285"]]
14334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14335
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.550826') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14336
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14337
+  (0.1ms) SAVEPOINT active_record_1
14338
+ Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:37.557057"], ["reminded_at", "2019-07-04 04:52:37.557057"], ["id", 1]]
14339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14340
+  (0.6ms) rollback transaction
14341
+  (0.1ms) begin transaction
14342
+ ----------------------------------------------------------------
14343
+ ProposalTest: test_should_return_proposals_for_proposer_instance
14344
+ ----------------------------------------------------------------
14345
+  (0.1ms) SAVEPOINT active_record_1
14346
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.560989"], ["updated_at", "2019-07-04 04:52:37.560989"]]
14347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14348
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.562220') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14349
+  (0.1ms) SAVEPOINT active_record_1
14350
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.563771') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14351
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "wmq5zMn1kaBXaB56kQAt"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 04:52:37.563042"], ["updated_at", "2019-07-04 04:52:37.564491"], ["created_at", "2019-07-04 04:52:37.564491"]]
14352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14353
+ 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]]
14354
+  (0.5ms) rollback transaction
14355
+  (0.1ms) begin transaction
14356
+ -------------------------------------------
14357
+ ProposalTest: test_should_accept_a_resource
14358
+ -------------------------------------------
14359
+  (0.1ms) SAVEPOINT active_record_1
14360
+ Project Create (0.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:37.574121"], ["updated_at", "2019-07-04 04:52:37.574121"]]
14361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14362
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.576152') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14363
+  (0.0ms) SAVEPOINT active_record_1
14364
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.578000') 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]]
14365
+ 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", "b57pzy4mbf5rNj8EYbes"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:37.577103"], ["updated_at", "2019-07-04 04:52:37.578817"], ["created_at", "2019-07-04 04:52:37.578817"]]
14366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14367
+  (0.0ms) SAVEPOINT active_record_1
14368
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:37.580111"], ["updated_at", "2019-07-04 04:52:37.580111"]]
14369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14370
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.580795') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14371
+  (0.1ms) SAVEPOINT active_record_1
14372
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.582688') 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]]
14373
+ 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", "XpQjahpWumfL2AjFeyMS"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 04:52:37.581697"], ["updated_at", "2019-07-04 04:52:37.583924"], ["created_at", "2019-07-04 04:52:37.583924"]]
14374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14375
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.585386') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14376
+  (0.5ms) rollback transaction
14377
+  (0.1ms) begin transaction
14378
+ ----------------------------------------------------------------
14379
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
14380
+ ----------------------------------------------------------------
14381
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.588129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14382
+  (0.1ms) SAVEPOINT active_record_1
14383
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.589800') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14384
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "wewoi7rMfC1qzMCyJw1C"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.589102"], ["updated_at", "2019-07-04 04:52:37.590542"], ["created_at", "2019-07-04 04:52:37.590542"]]
14385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14386
+  (0.4ms) rollback transaction
14387
+  (0.1ms) begin transaction
14388
+ --------------------------------------------------
14389
+ ProposalTest: test_should_respond_to_the_recipient
14390
+ --------------------------------------------------
14391
+  (0.1ms) SAVEPOINT active_record_1
14392
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.593613"], ["updated_at", "2019-07-04 04:52:37.593613"]]
14393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14394
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.594781') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14395
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14396
+  (0.4ms) rollback transaction
14397
+  (0.0ms) begin transaction
14398
+ --------------------------------------------
14399
+ ProposalTest: test_user_should_have_proposal
14400
+ --------------------------------------------
14401
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.597608') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14402
+  (0.1ms) rollback transaction
14403
+  (0.1ms) begin transaction
14404
+ ---------------------------------------------------------------------
14405
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
14406
+ ---------------------------------------------------------------------
14407
+  (0.1ms) SAVEPOINT active_record_1
14408
+ Project Create (1.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:37.602088"], ["updated_at", "2019-07-04 04:52:37.602088"]]
14409
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14410
+  (0.1ms) SAVEPOINT active_record_1
14411
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.606015"], ["updated_at", "2019-07-04 04:52:37.606015"]]
14412
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14413
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.607196') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14414
+  (0.1ms) SAVEPOINT active_record_1
14415
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.609543') 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]]
14416
+ 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", "EDdPm1yGc4goftFTvE3c"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:37.608569"], ["updated_at", "2019-07-04 04:52:37.610683"], ["created_at", "2019-07-04 04:52:37.610683"]]
14417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14418
+  (0.0ms) SAVEPOINT active_record_1
14419
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:37.612095"], ["accepted_at", "2019-07-04 04:52:37.612095"], ["id", 1]]
14420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14421
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.613014') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14422
+  (0.1ms) SAVEPOINT active_record_1
14423
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.616200') 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]]
14424
+ 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", "98brfnVJ1oteySyQyZwW"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:37.614159"], ["updated_at", "2019-07-04 04:52:37.618234"], ["created_at", "2019-07-04 04:52:37.618234"]]
14425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14426
+  (0.9ms) rollback transaction
14427
+  (0.1ms) begin transaction
14428
+ -------------------------------------------------------
14429
+ ProposalTest: test_should_return_token_from_to_s_method
14430
+ -------------------------------------------------------
14431
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.621926') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14432
+  (0.1ms) SAVEPOINT active_record_1
14433
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.623818') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14434
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MRpijdGmGNU14qLXFy3v"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.622946"], ["updated_at", "2019-07-04 04:52:37.624577"], ["created_at", "2019-07-04 04:52:37.624577"]]
14435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14436
+  (0.4ms) rollback transaction
14437
+  (0.1ms) begin transaction
14438
+ ------------------------------------------------------------
14439
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
14440
+ ------------------------------------------------------------
14441
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.627048') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14442
+  (0.1ms) SAVEPOINT active_record_1
14443
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.628884') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14444
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "WvS6yYYrYdUtDkBBKbZJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 04:52:37.627958"], ["updated_at", "2019-07-04 04:52:37.629769"], ["created_at", "2019-07-04 04:52:37.629769"]]
14445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14446
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "WvS6yYYrYdUtDkBBKbZJ"], ["LIMIT", 1]]
14447
+  (0.5ms) rollback transaction
14448
+  (0.1ms) begin transaction
14449
+ --------------------------------------------------
14450
+ ProposalTest: test_should_return_proposal_instance
14451
+ --------------------------------------------------
14452
+  (0.1ms) SAVEPOINT active_record_1
14453
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.637141"], ["updated_at", "2019-07-04 04:52:37.637141"]]
14454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14455
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.638481') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14456
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14457
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.640765') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14458
+  (0.4ms) rollback transaction
14459
+  (0.0ms) begin transaction
14460
+ -----------------------------------------------------------------------
14461
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
14462
+ -----------------------------------------------------------------------
14463
+  (0.1ms) SAVEPOINT active_record_1
14464
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.643356"], ["updated_at", "2019-07-04 04:52:37.643356"]]
14465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14466
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.644824') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14467
+  (0.1ms) SAVEPOINT active_record_1
14468
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.646903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14469
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Tm7eas4tshzsKhPwq6kt"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.645963"], ["updated_at", "2019-07-04 04:52:37.648655"], ["created_at", "2019-07-04 04:52:37.648655"]]
14470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14471
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.650796') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14472
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14473
+  (0.5ms) rollback transaction
14474
+  (0.0ms) begin transaction
14475
+ --------------------------------------------------
14476
+ ProposalTest: test_should_find_and_accept_proposal
14477
+ --------------------------------------------------
14478
+  (0.1ms) SAVEPOINT active_record_1
14479
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.655389"], ["updated_at", "2019-07-04 04:52:37.655389"]]
14480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14481
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.656612') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14482
+  (0.0ms) SAVEPOINT active_record_1
14483
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.658310') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14484
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fMq5HkqMnq91182MtBbr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.657571"], ["updated_at", "2019-07-04 04:52:37.659168"], ["created_at", "2019-07-04 04:52:37.659168"]]
14485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14486
+ 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", "fMq5HkqMnq91182MtBbr"], ["LIMIT", 1]]
14487
+  (0.0ms) SAVEPOINT active_record_1
14488
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:37.661059"], ["accepted_at", "2019-07-04 04:52:37.661059"], ["id", 1]]
14489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14490
+  (0.5ms) rollback transaction
14491
+  (0.1ms) begin transaction
14492
+ --------------------------------------------------------
14493
+ ProposalTest: test_should_validate_arguments_with_a_proc
14494
+ --------------------------------------------------------
14495
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.663093') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14496
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.665467') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14497
+  (0.1ms) rollback transaction
14498
+  (0.1ms) begin transaction
14499
+ ---------------------------------------------
14500
+ ProposalTest: test_should_return_the_resource
14501
+ ---------------------------------------------
14502
+  (0.1ms) SAVEPOINT active_record_1
14503
+ Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:37.668295"], ["updated_at", "2019-07-04 04:52:37.668295"]]
14504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14505
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.669787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14506
+  (0.4ms) rollback transaction
14507
+  (0.0ms) begin transaction
14508
+ ------------------------------------------------------
14509
+ ProposalTest: test_should_not_return_proposal_instance
14510
+ ------------------------------------------------------
14511
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.672278') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14512
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14513
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14514
+  (0.0ms) rollback transaction
14515
+  (0.0ms) begin transaction
14516
+ -------------------------------------------
14517
+ ProposalTest: test_should_set_reminded_safe
14518
+ -------------------------------------------
14519
+  (0.0ms) SAVEPOINT active_record_1
14520
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.675383"], ["updated_at", "2019-07-04 04:52:37.675383"]]
14521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14522
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.676509') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14523
+  (0.0ms) SAVEPOINT active_record_1
14524
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.678013') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14525
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ubUyCpYXsKFSysLNt7ec"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.677330"], ["updated_at", "2019-07-04 04:52:37.678695"], ["created_at", "2019-07-04 04:52:37.678695"]]
14526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14527
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.680167') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14528
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14529
+  (0.1ms) SAVEPOINT active_record_1
14530
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:37.682915"], ["reminded_at", "2019-07-04 04:52:37.682915"], ["id", 1]]
14531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14532
+  (0.5ms) rollback transaction
14533
+  (0.1ms) begin transaction
14534
+ ------------------------
14535
+ ProposalTest: test_truth
14536
+ ------------------------
14537
+  (0.1ms) rollback transaction
14538
+  (0.2ms) begin transaction
14539
+ ----------------------------------------------------------------
14540
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
14541
+ ----------------------------------------------------------------
14542
+  (0.1ms) SAVEPOINT active_record_1
14543
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.687432') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14544
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yynbpeLhduFQK2wtyEki"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 04:52:37.687089"], ["updated_at", "2019-07-04 04:52:37.698392"], ["created_at", "2019-07-04 04:52:37.698392"]]
14545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14546
+  (0.1ms) SAVEPOINT active_record_1
14547
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.701410') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14548
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
14549
+  (0.5ms) rollback transaction
14550
+  (0.1ms) begin transaction
14551
+ ------------------------------------------------------------------
14552
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
14553
+ ------------------------------------------------------------------
14554
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.704131') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14555
+  (0.1ms) SAVEPOINT active_record_1
14556
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.705832') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14557
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "knRksNSsaqo9d63DxQZy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.705132"], ["updated_at", "2019-07-04 04:52:37.706492"], ["created_at", "2019-07-04 04:52:37.706492"]]
14558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14559
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.707795') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14560
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14561
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14563
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14564
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14565
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14566
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14567
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14568
+  (0.4ms) rollback transaction
14569
+  (0.0ms) begin transaction
14570
+ -------------------------------------------------------
14571
+ ProposalTest: test_should_return_all_proposals_for_type
14572
+ -------------------------------------------------------
14573
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.713721') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14574
+  (0.1ms) SAVEPOINT active_record_1
14575
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.715851') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14576
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2yAP8rZSf4V8xLbaNrxj"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.714633"], ["updated_at", "2019-07-04 04:52:37.716945"], ["created_at", "2019-07-04 04:52:37.716945"]]
14577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14578
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
14579
+  (0.4ms) rollback transaction
14580
+  (0.1ms) begin transaction
14581
+ ----------------------------------------------------------
14582
+ ProposalTest: test_should_not_return_no_action_if_accepted
14583
+ ----------------------------------------------------------
14584
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.720618') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14585
+  (0.1ms) SAVEPOINT active_record_1
14586
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.722274') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14587
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XFAyZNykWhqockJapiuF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.721567"], ["updated_at", "2019-07-04 04:52:37.722915"], ["created_at", "2019-07-04 04:52:37.722915"]]
14588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14589
+  (0.1ms) SAVEPOINT active_record_1
14590
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:37.724659"], ["accepted_at", "2019-07-04 04:52:37.724659"], ["id", 1]]
14591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14592
+  (0.4ms) rollback transaction
14593
+  (0.0ms) begin transaction
14594
+ ----------------------------------------------------------------------
14595
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
14596
+ ----------------------------------------------------------------------
14597
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.726725') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14598
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.728136') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14599
+  (0.0ms) SAVEPOINT active_record_1
14600
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14601
+  (0.0ms) rollback transaction
14602
+  (0.1ms) begin transaction
14603
+ -----------------------------------------------------------------
14604
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
14605
+ -----------------------------------------------------------------
14606
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.732044') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14607
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.735207') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14608
+  (0.1ms) rollback transaction
14609
+  (0.1ms) begin transaction
14610
+ -----------------------------------------------------------------
14611
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
14612
+ -----------------------------------------------------------------
14613
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.737517') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14614
+  (0.1ms) SAVEPOINT active_record_1
14615
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.739251') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14616
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "EopsEpCtPvtFNWaQAJwy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.738457"], ["updated_at", "2019-07-04 04:52:37.740132"], ["created_at", "2019-07-04 04:52:37.740132"]]
14617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14618
+  (0.0ms) SAVEPOINT active_record_1
14619
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:37.741713"], ["accepted_at", "2019-07-04 04:52:37.741713"], ["id", 1]]
14620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14621
+  (0.4ms) rollback transaction
14622
+  (0.0ms) begin transaction
14623
+ --------------------------------------------------------
14624
+ ProposalTest: test_should_validate_arguments_with_symbol
14625
+ --------------------------------------------------------
14626
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.743521') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14627
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.744900') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14628
+  (0.0ms) rollback transaction
14629
+  (0.0ms) begin transaction
14630
+ ----------------------------------------------------------------
14631
+ ProposalTest: test_should_return_proposals_for_resource_instance
14632
+ ----------------------------------------------------------------
14633
+  (0.0ms) SAVEPOINT active_record_1
14634
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.746483"], ["updated_at", "2019-07-04 04:52:37.746483"]]
14635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14636
+  (0.0ms) SAVEPOINT active_record_1
14637
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:37.747888"], ["updated_at", "2019-07-04 04:52:37.747888"]]
14638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14639
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.749143') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14640
+  (0.2ms) SAVEPOINT active_record_1
14641
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.752737') 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]]
14642
+ 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", "iZD4yHKj9CZJz5USTkmf"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:37.750650"], ["updated_at", "2019-07-04 04:52:37.754210"], ["created_at", "2019-07-04 04:52:37.754210"]]
14643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14644
+ 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]]
14645
+  (0.5ms) rollback transaction
14646
+  (0.1ms) begin transaction
14647
+ ---------------------------------------------------------
14648
+ ProposalTest: test_should_validate_arguments_with_symbols
14649
+ ---------------------------------------------------------
14650
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.758461') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14651
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.759921') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14652
+  (0.0ms) rollback transaction
14653
+  (0.1ms) begin transaction
14654
+ -----------------------------------------------------------
14655
+ ProposalTest: test_should_not_return_proposal_action_notify
14656
+ -----------------------------------------------------------
14657
+  (0.1ms) SAVEPOINT active_record_1
14658
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.761650"], ["updated_at", "2019-07-04 04:52:37.761650"]]
14659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14660
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.762711') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14661
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.763939') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14662
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14663
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.765732') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14664
+  (0.5ms) rollback transaction
14665
+  (0.0ms) begin transaction
14666
+ -------------------------------------------------
14667
+ ProposalTest: test_should_respond_to_the_resource
14668
+ -------------------------------------------------
14669
+  (0.1ms) SAVEPOINT active_record_1
14670
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:37.768647"], ["updated_at", "2019-07-04 04:52:37.768647"]]
14671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14672
+  (0.0ms) SAVEPOINT active_record_1
14673
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:37.770012"], ["updated_at", "2019-07-04 04:52:37.770012"]]
14674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14675
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.770776') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14676
+  (0.4ms) rollback transaction
14677
+  (0.0ms) begin transaction
14678
+ -----------------------------------------------------------
14679
+ ProposalTest: test_should_not_return_proposal_action_invite
14680
+ -----------------------------------------------------------
14681
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.772946') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14682
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.774283') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14683
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14684
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.775640') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14685
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14686
+  (0.0ms) rollback transaction
14687
+  (0.0ms) begin transaction
14688
+ -----------------------------------------------------
14689
+ ProposalTest: test_should_create_valid_proposal_token
14690
+ -----------------------------------------------------
14691
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.777351') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14692
+  (0.0ms) SAVEPOINT active_record_1
14693
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.778861') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14694
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HzhFyYyqKJtHyyjoZYP5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:37.778203"], ["updated_at", "2019-07-04 04:52:37.779513"], ["created_at", "2019-07-04 04:52:37.779513"]]
14695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14696
+  (1.5ms) rollback transaction
14697
+  (0.1ms) begin transaction
14698
+ ----------------------------------------------
14699
+ ProposalTest: test_should_return_all_arguments
14700
+ ----------------------------------------------
14701
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.784089') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14702
+  (0.1ms) SAVEPOINT active_record_1
14703
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.786297') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14704
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "fcMzwaKf8EkDvhQmxQrj"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 04:52:37.785303"], ["updated_at", "2019-07-04 04:52:37.787166"], ["created_at", "2019-07-04 04:52:37.787166"]]
14705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14706
+ 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", "fcMzwaKf8EkDvhQmxQrj"], ["LIMIT", 1]]
14707
+  (0.5ms) rollback transaction
14708
+  (0.0ms) begin transaction
14709
+ -----------------------------------------------------------
14710
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
14711
+ -----------------------------------------------------------
14712
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.791469') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14713
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:37.793686') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14714
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14715
+  (0.1ms) rollback transaction
14716
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
14717
+  (0.1ms) begin transaction
14718
+ ---------------------------------------------------------------------
14719
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
14720
+ ---------------------------------------------------------------------
14721
+  (0.1ms) SAVEPOINT active_record_1
14722
+ Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:57.355422"], ["updated_at", "2019-07-04 04:52:57.355422"]]
14723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14724
+  (0.1ms) SAVEPOINT active_record_1
14725
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.362398"], ["updated_at", "2019-07-04 04:52:57.362398"]]
14726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14727
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.372110') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14728
+  (0.1ms) SAVEPOINT active_record_1
14729
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.392923') 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]]
14730
+ 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", "unwLskxZh9r6xA5pANaW"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:57.387315"], ["updated_at", "2019-07-04 04:52:57.393883"], ["created_at", "2019-07-04 04:52:57.393883"]]
14731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14732
+  (0.1ms) SAVEPOINT active_record_1
14733
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:57.395544"], ["accepted_at", "2019-07-04 04:52:57.395544"], ["id", 1]]
14734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14735
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.396541') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14736
+  (0.1ms) SAVEPOINT active_record_1
14737
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.398399') 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]]
14738
+ 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", "QHFDTUuDLcYwxuJgf7Pp"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:57.397476"], ["updated_at", "2019-07-04 04:52:57.406065"], ["created_at", "2019-07-04 04:52:57.406065"]]
14739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14740
+  (0.9ms) rollback transaction
14741
+  (0.1ms) begin transaction
14742
+ ----------------------------------------------------------
14743
+ ProposalTest: test_should_not_return_no_action_if_accepted
14744
+ ----------------------------------------------------------
14745
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.409950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14746
+  (0.1ms) SAVEPOINT active_record_1
14747
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.411903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14748
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KYpeKLBkNg4zL7YuUsFR"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.411053"], ["updated_at", "2019-07-04 04:52:57.412938"], ["created_at", "2019-07-04 04:52:57.412938"]]
14749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14750
+  (0.0ms) SAVEPOINT active_record_1
14751
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:57.415192"], ["accepted_at", "2019-07-04 04:52:57.415192"], ["id", 1]]
14752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14753
+  (0.7ms) rollback transaction
14754
+  (0.0ms) begin transaction
14755
+ ----------------------------------------------------------------------
14756
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
14757
+ ----------------------------------------------------------------------
14758
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.417474') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14759
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.419099') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14760
+  (0.1ms) SAVEPOINT active_record_1
14761
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14762
+  (0.0ms) rollback transaction
14763
+  (0.1ms) begin transaction
14764
+ -------------------------------------------
14765
+ ProposalTest: test_should_set_reminded_safe
14766
+ -------------------------------------------
14767
+  (0.1ms) SAVEPOINT active_record_1
14768
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.423700"], ["updated_at", "2019-07-04 04:52:57.423700"]]
14769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14770
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.424991') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14771
+  (0.0ms) SAVEPOINT active_record_1
14772
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.426425') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14773
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "F2jyP1GneKepgum6oHuP"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.425775"], ["updated_at", "2019-07-04 04:52:57.427042"], ["created_at", "2019-07-04 04:52:57.427042"]]
14774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14775
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.428600') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14776
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14777
+  (0.1ms) SAVEPOINT active_record_1
14778
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:57.434309"], ["reminded_at", "2019-07-04 04:52:57.434309"], ["id", 1]]
14779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14780
+  (0.6ms) rollback transaction
14781
+  (0.0ms) begin transaction
14782
+ -------------------------------------------------------
14783
+ ProposalTest: test_should_return_all_proposals_for_type
14784
+ -------------------------------------------------------
14785
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.436916') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14786
+  (0.1ms) SAVEPOINT active_record_1
14787
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.439154') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14788
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Qspr7Pp9ddEVeYxuPMvs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.438172"], ["updated_at", "2019-07-04 04:52:57.440423"], ["created_at", "2019-07-04 04:52:57.440423"]]
14789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14790
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
14791
+  (0.6ms) rollback transaction
14792
+  (0.1ms) begin transaction
14793
+ --------------------------------------------------------
14794
+ ProposalTest: test_should_validate_arguments_with_a_proc
14795
+ --------------------------------------------------------
14796
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.444524') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14797
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.447071') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14798
+  (0.1ms) rollback transaction
14799
+  (0.0ms) begin transaction
14800
+ -----------------------------------------------------------
14801
+ ProposalTest: test_should_not_return_proposal_action_invite
14802
+ -----------------------------------------------------------
14803
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.450402') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14804
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.452317') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14805
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14806
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.455605') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14807
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14808
+  (0.1ms) rollback transaction
14809
+  (0.1ms) begin transaction
14810
+ -------------------------------------------
14811
+ ProposalTest: test_should_set_reminded_bang
14812
+ -------------------------------------------
14813
+  (0.1ms) SAVEPOINT active_record_1
14814
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.459575"], ["updated_at", "2019-07-04 04:52:57.459575"]]
14815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14816
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.461110') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14817
+  (0.1ms) SAVEPOINT active_record_1
14818
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.463432') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14819
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "dZJGXuvcEe31apozra5k"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.462177"], ["updated_at", "2019-07-04 04:52:57.464670"], ["created_at", "2019-07-04 04:52:57.464670"]]
14820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14821
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.466184') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14822
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14823
+  (0.1ms) SAVEPOINT active_record_1
14824
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:57.468534"], ["reminded_at", "2019-07-04 04:52:57.468534"], ["id", 1]]
14825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14826
+  (0.7ms) rollback transaction
14827
+  (0.1ms) begin transaction
14828
+ ------------------------------------------------------------------
14829
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
14830
+ ------------------------------------------------------------------
14831
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.471131') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14832
+  (0.1ms) SAVEPOINT active_record_1
14833
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.472954') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14834
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "kRKKA9PvUVyfwpphqpwT"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.472196"], ["updated_at", "2019-07-04 04:52:57.473639"], ["created_at", "2019-07-04 04:52:57.473639"]]
14835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14836
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.474797') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14837
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14838
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14839
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14840
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14841
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14842
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14843
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14844
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14845
+  (0.8ms) rollback transaction
14846
+  (0.1ms) begin transaction
14847
+ ------------------------
14848
+ ProposalTest: test_truth
14849
+ ------------------------
14850
+  (0.1ms) rollback transaction
14851
+  (0.1ms) begin transaction
14852
+ -------------------------------------------------
14853
+ ProposalTest: test_should_respond_to_the_resource
14854
+ -------------------------------------------------
14855
+  (0.1ms) SAVEPOINT active_record_1
14856
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.484116"], ["updated_at", "2019-07-04 04:52:57.484116"]]
14857
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14858
+  (0.1ms) SAVEPOINT active_record_1
14859
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:57.486815"], ["updated_at", "2019-07-04 04:52:57.486815"]]
14860
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14861
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.488404') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14862
+  (0.6ms) rollback transaction
14863
+  (0.1ms) begin transaction
14864
+ --------------------------------------------------
14865
+ ProposalTest: test_should_respond_to_the_recipient
14866
+ --------------------------------------------------
14867
+  (0.1ms) SAVEPOINT active_record_1
14868
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.492935"], ["updated_at", "2019-07-04 04:52:57.492935"]]
14869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14870
+ Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.494498') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14871
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14872
+  (1.0ms) rollback transaction
14873
+  (0.3ms) begin transaction
14874
+ -------------------------------------------------------
14875
+ ProposalTest: test_should_return_token_from_to_s_method
14876
+ -------------------------------------------------------
14877
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.501990') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14878
+  (0.1ms) SAVEPOINT active_record_1
14879
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.505479') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14880
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "X64WLAqARqU9xGzKsuwv"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.504165"], ["updated_at", "2019-07-04 04:52:57.506798"], ["created_at", "2019-07-04 04:52:57.506798"]]
14881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14882
+  (0.5ms) rollback transaction
14883
+  (0.1ms) begin transaction
14884
+ ------------------------------------------------------------
14885
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
14886
+ ------------------------------------------------------------
14887
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.509852') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14888
+  (0.1ms) SAVEPOINT active_record_1
14889
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.512979') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14890
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "fgVq5yE8RGadY8Azwyv2"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 04:52:57.511558"], ["updated_at", "2019-07-04 04:52:57.514052"], ["created_at", "2019-07-04 04:52:57.514052"]]
14891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14892
+ 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", "fgVq5yE8RGadY8Azwyv2"], ["LIMIT", 1]]
14893
+  (0.9ms) rollback transaction
14894
+  (0.1ms) begin transaction
14895
+ -----------------------------------------------------------------
14896
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
14897
+ -----------------------------------------------------------------
14898
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.520489') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14899
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.522730') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14900
+  (0.1ms) rollback transaction
14901
+  (0.0ms) begin transaction
14902
+ ----------------------------------------------------------------
14903
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
14904
+ ----------------------------------------------------------------
14905
+  (0.1ms) SAVEPOINT active_record_1
14906
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.525503') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14907
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "czZfV5MQsnUKqsmFX7Ue"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 04:52:57.525082"], ["updated_at", "2019-07-04 04:52:57.526952"], ["created_at", "2019-07-04 04:52:57.526952"]]
14908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14909
+  (0.1ms) SAVEPOINT active_record_1
14910
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.530463') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14911
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14912
+  (0.4ms) rollback transaction
14913
+  (0.1ms) begin transaction
14914
+ -----------------------------------------------------------
14915
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
14916
+ -----------------------------------------------------------
14917
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.532719') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14918
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.534548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14919
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14920
+  (0.0ms) rollback transaction
14921
+  (0.0ms) begin transaction
14922
+ ---------------------------------------------
14923
+ ProposalTest: test_should_return_the_resource
14924
+ ---------------------------------------------
14925
+  (0.1ms) SAVEPOINT active_record_1
14926
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:57.536867"], ["updated_at", "2019-07-04 04:52:57.536867"]]
14927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14928
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.538270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14929
+  (0.5ms) rollback transaction
14930
+  (0.1ms) begin transaction
14931
+ --------------------------------------------------
14932
+ ProposalTest: test_should_return_proposal_instance
14933
+ --------------------------------------------------
14934
+  (11.4ms) SAVEPOINT active_record_1
14935
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.552925"], ["updated_at", "2019-07-04 04:52:57.552925"]]
14936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14937
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.554276') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14938
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14939
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.556238') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14940
+  (0.4ms) rollback transaction
14941
+  (0.0ms) begin transaction
14942
+ --------------------------------------------------------
14943
+ ProposalTest: test_should_validate_arguments_with_symbol
14944
+ --------------------------------------------------------
14945
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.558022') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14946
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.559504') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14947
+  (0.0ms) rollback transaction
14948
+  (0.1ms) begin transaction
14949
+ ---------------------------------------------------------
14950
+ ProposalTest: test_should_validate_arguments_with_symbols
14951
+ ---------------------------------------------------------
14952
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.561093') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14953
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.563387') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14954
+  (0.0ms) rollback transaction
14955
+  (0.0ms) begin transaction
14956
+ -----------------------------------------------------------------------
14957
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
14958
+ -----------------------------------------------------------------------
14959
+  (0.1ms) SAVEPOINT active_record_1
14960
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.565609"], ["updated_at", "2019-07-04 04:52:57.565609"]]
14961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14962
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.567056') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14963
+  (0.0ms) SAVEPOINT active_record_1
14964
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.568616') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14965
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gdNw6fvWSbF8MqRXHtQu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.567925"], ["updated_at", "2019-07-04 04:52:57.569267"], ["created_at", "2019-07-04 04:52:57.569267"]]
14966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14967
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.570598') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14968
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
14969
+  (0.4ms) rollback transaction
14970
+  (0.1ms) begin transaction
14971
+ -------------------------------------------
14972
+ ProposalTest: test_should_accept_a_resource
14973
+ -------------------------------------------
14974
+  (0.0ms) SAVEPOINT active_record_1
14975
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:57.573632"], ["updated_at", "2019-07-04 04:52:57.573632"]]
14976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14977
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.574733') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14978
+  (0.0ms) SAVEPOINT active_record_1
14979
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.576352') 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]]
14980
+ 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", "Qoq9N1z5z796NbxhEtZC"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:57.575653"], ["updated_at", "2019-07-04 04:52:57.577046"], ["created_at", "2019-07-04 04:52:57.577046"]]
14981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14982
+  (0.1ms) SAVEPOINT active_record_1
14983
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:57.579880"], ["updated_at", "2019-07-04 04:52:57.579880"]]
14984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14985
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.580881') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14986
+  (0.0ms) SAVEPOINT active_record_1
14987
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.582600') 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]]
14988
+ 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", "mLF2f35yz3nyQC31PH7n"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 04:52:57.581840"], ["updated_at", "2019-07-04 04:52:57.583725"], ["created_at", "2019-07-04 04:52:57.583725"]]
14989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14990
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.584750') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
14991
+  (0.8ms) rollback transaction
14992
+  (0.1ms) begin transaction
14993
+ --------------------------------------------
14994
+ ProposalTest: test_user_should_have_proposal
14995
+ --------------------------------------------
14996
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.587179') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
14997
+  (0.0ms) rollback transaction
14998
+  (0.0ms) begin transaction
14999
+ ----------------------------------------------
15000
+ ProposalTest: test_should_return_all_arguments
15001
+ ----------------------------------------------
15002
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.588935') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15003
+  (0.0ms) SAVEPOINT active_record_1
15004
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.590444') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15005
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "5ypEy9a7MAsBgheuDMa1"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 04:52:57.589754"], ["updated_at", "2019-07-04 04:52:57.591096"], ["created_at", "2019-07-04 04:52:57.591096"]]
15006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15007
+ 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", "5ypEy9a7MAsBgheuDMa1"], ["LIMIT", 1]]
15008
+  (0.4ms) rollback transaction
15009
+  (0.1ms) begin transaction
15010
+ ----------------------------------------------------------------
15011
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
15012
+ ----------------------------------------------------------------
15013
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.594824') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15014
+  (0.1ms) SAVEPOINT active_record_1
15015
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.597506') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15016
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Y3tdGVk8bgq7Utq1UkCo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.596199"], ["updated_at", "2019-07-04 04:52:57.598350"], ["created_at", "2019-07-04 04:52:57.598350"]]
15017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15018
+  (0.5ms) rollback transaction
15019
+  (0.1ms) begin transaction
15020
+ ----------------------------------------------------------------
15021
+ ProposalTest: test_should_return_proposals_for_proposer_instance
15022
+ ----------------------------------------------------------------
15023
+  (0.1ms) SAVEPOINT active_record_1
15024
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.601844"], ["updated_at", "2019-07-04 04:52:57.601844"]]
15025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15026
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.603223') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15027
+  (0.0ms) SAVEPOINT active_record_1
15028
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.604828') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15029
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "4xp9quGoRV6bTgiiBg3V"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 04:52:57.604086"], ["updated_at", "2019-07-04 04:52:57.605562"], ["created_at", "2019-07-04 04:52:57.605562"]]
15030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15031
+ 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]]
15032
+  (0.4ms) rollback transaction
15033
+  (0.0ms) begin transaction
15034
+ ------------------------------------------------------
15035
+ ProposalTest: test_should_not_return_proposal_instance
15036
+ ------------------------------------------------------
15037
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.608147') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15038
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15039
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15040
+  (0.1ms) rollback transaction
15041
+  (0.1ms) begin transaction
15042
+ -----------------------------------------------------------
15043
+ ProposalTest: test_should_not_return_proposal_action_notify
15044
+ -----------------------------------------------------------
15045
+  (0.1ms) SAVEPOINT active_record_1
15046
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.611834"], ["updated_at", "2019-07-04 04:52:57.611834"]]
15047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15048
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.613581') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15049
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.615009') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15050
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15051
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.616536') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15052
+  (0.5ms) rollback transaction
15053
+  (0.0ms) begin transaction
15054
+ -----------------------------------------------------
15055
+ ProposalTest: test_should_create_valid_proposal_token
15056
+ -----------------------------------------------------
15057
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.618775') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15058
+  (0.1ms) SAVEPOINT active_record_1
15059
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.620608') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15060
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "vBFNx9X1Nqxd7fTZeQdn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.619734"], ["updated_at", "2019-07-04 04:52:57.621350"], ["created_at", "2019-07-04 04:52:57.621350"]]
15061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15062
+  (0.6ms) rollback transaction
15063
+  (0.1ms) begin transaction
15064
+ -----------------------------------------------------------------
15065
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
15066
+ -----------------------------------------------------------------
15067
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.624148') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15068
+  (0.0ms) SAVEPOINT active_record_1
15069
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.625790') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15070
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zXS7qGXaTnLX9xwGMxqt"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.625105"], ["updated_at", "2019-07-04 04:52:57.626432"], ["created_at", "2019-07-04 04:52:57.626432"]]
15071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15072
+  (0.0ms) SAVEPOINT active_record_1
15073
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:57.627858"], ["accepted_at", "2019-07-04 04:52:57.627858"], ["id", 1]]
15074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15075
+  (0.6ms) rollback transaction
15076
+  (0.0ms) begin transaction
15077
+ --------------------------------------------------
15078
+ ProposalTest: test_should_find_and_accept_proposal
15079
+ --------------------------------------------------
15080
+  (0.1ms) SAVEPOINT active_record_1
15081
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.631059"], ["updated_at", "2019-07-04 04:52:57.631059"]]
15082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15083
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.632321') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15084
+  (0.0ms) SAVEPOINT active_record_1
15085
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.634370') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15086
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XKsxKZKE7qpHLurjxAFV"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:52:57.633514"], ["updated_at", "2019-07-04 04:52:57.635315"], ["created_at", "2019-07-04 04:52:57.635315"]]
15087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15088
+ 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", "XKsxKZKE7qpHLurjxAFV"], ["LIMIT", 1]]
15089
+  (0.0ms) SAVEPOINT active_record_1
15090
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:52:57.637385"], ["accepted_at", "2019-07-04 04:52:57.637385"], ["id", 1]]
15091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15092
+  (0.5ms) rollback transaction
15093
+  (0.0ms) begin transaction
15094
+ ----------------------------------------------------------------
15095
+ ProposalTest: test_should_return_proposals_for_resource_instance
15096
+ ----------------------------------------------------------------
15097
+  (0.0ms) SAVEPOINT active_record_1
15098
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:52:57.639548"], ["updated_at", "2019-07-04 04:52:57.639548"]]
15099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15100
+  (0.0ms) SAVEPOINT active_record_1
15101
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:52:57.640818"], ["updated_at", "2019-07-04 04:52:57.640818"]]
15102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15103
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.641576') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15104
+  (0.0ms) SAVEPOINT active_record_1
15105
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:52:57.643174') 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]]
15106
+ 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", "zFAj2ZhndtEszNaXuyNJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:52:57.642482"], ["updated_at", "2019-07-04 04:52:57.643917"], ["created_at", "2019-07-04 04:52:57.643917"]]
15107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15108
+ 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]]
15109
+  (0.6ms) rollback transaction
15110
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
15111
+  (0.1ms) begin transaction
15112
+ ------------------------------------------------------------------
15113
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
15114
+ ------------------------------------------------------------------
15115
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.348761') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15116
+  (0.1ms) SAVEPOINT active_record_1
15117
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.414408') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15118
+ Proposal::Token Create (1.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "5j9aqxptxhy8MtupDisS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.380347"], ["updated_at", "2019-07-04 04:53:10.415643"], ["created_at", "2019-07-04 04:53:10.415643"]]
15119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15120
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.418713') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15121
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15122
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15123
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15124
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15125
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15126
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15127
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15128
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15129
+  (0.7ms) rollback transaction
15130
+  (0.2ms) begin transaction
15131
+ ----------------------------------------------------------
15132
+ ProposalTest: test_should_not_return_no_action_if_accepted
15133
+ ----------------------------------------------------------
15134
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.430132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15135
+  (0.1ms) SAVEPOINT active_record_1
15136
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.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]]
15137
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "f9261RHC4Aw29Wz7n5re"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.431886"], ["updated_at", "2019-07-04 04:53:10.434245"], ["created_at", "2019-07-04 04:53:10.434245"]]
15138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15139
+  (0.2ms) SAVEPOINT active_record_1
15140
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:10.436894"], ["accepted_at", "2019-07-04 04:53:10.436894"], ["id", 1]]
15141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15142
+  (0.8ms) rollback transaction
15143
+  (0.1ms) begin transaction
15144
+ -------------------------------------------------------
15145
+ ProposalTest: test_should_return_all_proposals_for_type
15146
+ -------------------------------------------------------
15147
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.441294') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15148
+  (0.1ms) SAVEPOINT active_record_1
15149
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.443582') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15150
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "AzhhfLRYqy7ksNpcqTUx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.442739"], ["updated_at", "2019-07-04 04:53:10.444372"], ["created_at", "2019-07-04 04:53:10.444372"]]
15151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15152
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
15153
+  (0.5ms) rollback transaction
15154
+  (0.1ms) begin transaction
15155
+ ---------------------------------------------------------------------
15156
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
15157
+ ---------------------------------------------------------------------
15158
+  (0.2ms) SAVEPOINT active_record_1
15159
+ Project Create (0.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:10.452989"], ["updated_at", "2019-07-04 04:53:10.452989"]]
15160
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15161
+  (0.1ms) SAVEPOINT active_record_1
15162
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.461894"], ["updated_at", "2019-07-04 04:53:10.461894"]]
15163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15164
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.463652') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15165
+  (0.1ms) SAVEPOINT active_record_1
15166
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.466398') 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]]
15167
+ 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", "SwnJYWzpLeVaWPxo9GCg"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:10.465441"], ["updated_at", "2019-07-04 04:53:10.467261"], ["created_at", "2019-07-04 04:53:10.467261"]]
15168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15169
+  (0.0ms) SAVEPOINT active_record_1
15170
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:10.468633"], ["accepted_at", "2019-07-04 04:53:10.468633"], ["id", 1]]
15171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15172
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.469423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15173
+  (0.0ms) SAVEPOINT active_record_1
15174
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.471033') 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]]
15175
+ 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", "nnJPTNuCxz1qK2xn8bqY"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:10.470250"], ["updated_at", "2019-07-04 04:53:10.471901"], ["created_at", "2019-07-04 04:53:10.471901"]]
15176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15177
+  (0.7ms) rollback transaction
15178
+  (0.1ms) begin transaction
15179
+ -------------------------------------------
15180
+ ProposalTest: test_should_set_reminded_bang
15181
+ -------------------------------------------
15182
+  (0.1ms) SAVEPOINT active_record_1
15183
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.475586"], ["updated_at", "2019-07-04 04:53:10.475586"]]
15184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15185
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.476742') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15186
+  (0.1ms) SAVEPOINT active_record_1
15187
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.478773') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15188
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tLHLnwazdGZWxUkzj6Tz"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.477760"], ["updated_at", "2019-07-04 04:53:10.479856"], ["created_at", "2019-07-04 04:53:10.479856"]]
15189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15190
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.481457') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15192
+  (0.0ms) SAVEPOINT active_record_1
15193
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:10.483375"], ["reminded_at", "2019-07-04 04:53:10.483375"], ["id", 1]]
15194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15195
+  (0.5ms) rollback transaction
15196
+  (0.1ms) begin transaction
15197
+ ----------------------------------------------------------------------
15198
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
15199
+ ----------------------------------------------------------------------
15200
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.485674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15201
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.487655') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15202
+  (0.2ms) SAVEPOINT active_record_1
15203
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
15204
+  (0.1ms) rollback transaction
15205
+  (0.1ms) begin transaction
15206
+ --------------------------------------------------
15207
+ ProposalTest: test_should_respond_to_the_recipient
15208
+ --------------------------------------------------
15209
+  (0.1ms) SAVEPOINT active_record_1
15210
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.495005"], ["updated_at", "2019-07-04 04:53:10.495005"]]
15211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15212
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.497030') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15213
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15214
+  (0.4ms) rollback transaction
15215
+  (0.0ms) begin transaction
15216
+ ------------------------
15217
+ ProposalTest: test_truth
15218
+ ------------------------
15219
+  (0.0ms) rollback transaction
15220
+  (0.0ms) begin transaction
15221
+ -------------------------------------------------
15222
+ ProposalTest: test_should_respond_to_the_resource
15223
+ -------------------------------------------------
15224
+  (0.0ms) SAVEPOINT active_record_1
15225
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.500881"], ["updated_at", "2019-07-04 04:53:10.500881"]]
15226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15227
+  (0.0ms) SAVEPOINT active_record_1
15228
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:10.502294"], ["updated_at", "2019-07-04 04:53:10.502294"]]
15229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15230
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.503208') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15231
+  (0.5ms) rollback transaction
15232
+  (0.1ms) begin transaction
15233
+ -------------------------------------------
15234
+ ProposalTest: test_should_accept_a_resource
15235
+ -------------------------------------------
15236
+  (0.2ms) SAVEPOINT active_record_1
15237
+ Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:10.506833"], ["updated_at", "2019-07-04 04:53:10.506833"]]
15238
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15239
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.510187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15240
+  (0.1ms) SAVEPOINT active_record_1
15241
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.512758') 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]]
15242
+ 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", "sJR77xPpab2JoFSRuXag"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:10.511955"], ["updated_at", "2019-07-04 04:53:10.513845"], ["created_at", "2019-07-04 04:53:10.513845"]]
15243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15244
+  (0.0ms) SAVEPOINT active_record_1
15245
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:10.515240"], ["updated_at", "2019-07-04 04:53:10.515240"]]
15246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15247
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.515989') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15248
+  (0.0ms) SAVEPOINT active_record_1
15249
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.517518') 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]]
15250
+ 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", "oJpig6srUB1XzDFw3q4t"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 04:53:10.516817"], ["updated_at", "2019-07-04 04:53:10.518242"], ["created_at", "2019-07-04 04:53:10.518242"]]
15251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15252
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.519532') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15253
+  (0.5ms) rollback transaction
15254
+  (0.1ms) begin transaction
15255
+ -----------------------------------------------------
15256
+ ProposalTest: test_should_create_valid_proposal_token
15257
+ -----------------------------------------------------
15258
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.521862') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15259
+  (0.1ms) SAVEPOINT active_record_1
15260
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.523624') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15261
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "J2edNzxWzjzpJibB1fwb"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.522922"], ["updated_at", "2019-07-04 04:53:10.524502"], ["created_at", "2019-07-04 04:53:10.524502"]]
15262
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15263
+  (0.5ms) rollback transaction
15264
+  (0.1ms) begin transaction
15265
+ -------------------------------------------------------
15266
+ ProposalTest: test_should_return_token_from_to_s_method
15267
+ -------------------------------------------------------
15268
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.527096') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15269
+  (0.1ms) SAVEPOINT active_record_1
15270
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.528821') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15271
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "7v9i63kRb6jsgQ6uvBE1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.528082"], ["updated_at", "2019-07-04 04:53:10.529518"], ["created_at", "2019-07-04 04:53:10.529518"]]
15272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15273
+  (0.7ms) rollback transaction
15274
+  (0.1ms) begin transaction
15275
+ ------------------------------------------------------
15276
+ ProposalTest: test_should_not_return_proposal_instance
15277
+ ------------------------------------------------------
15278
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.532636') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15279
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15280
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15281
+  (0.1ms) rollback transaction
15282
+  (0.0ms) begin transaction
15283
+ --------------------------------------------------
15284
+ ProposalTest: test_should_find_and_accept_proposal
15285
+ --------------------------------------------------
15286
+  (0.1ms) SAVEPOINT active_record_1
15287
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.536475"], ["updated_at", "2019-07-04 04:53:10.536475"]]
15288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15289
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.538188') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15290
+  (0.3ms) SAVEPOINT active_record_1
15291
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.543027') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15292
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "N3HZdqAp71DzSQJzyuPq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.541275"], ["updated_at", "2019-07-04 04:53:10.544853"], ["created_at", "2019-07-04 04:53:10.544853"]]
15293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15294
+ 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", "N3HZdqAp71DzSQJzyuPq"], ["LIMIT", 1]]
15295
+  (0.2ms) SAVEPOINT active_record_1
15296
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:10.548726"], ["accepted_at", "2019-07-04 04:53:10.548726"], ["id", 1]]
15297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15298
+  (0.6ms) rollback transaction
15299
+  (0.1ms) begin transaction
15300
+ ------------------------------------------------------------
15301
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
15302
+ ------------------------------------------------------------
15303
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.551339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15304
+  (0.1ms) SAVEPOINT active_record_1
15305
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.553328') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15306
+ Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "YuVoyxws8wDKBzSyppUo"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 04:53:10.552538"], ["updated_at", "2019-07-04 04:53:10.554125"], ["created_at", "2019-07-04 04:53:10.554125"]]
15307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15308
+ 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", "YuVoyxws8wDKBzSyppUo"], ["LIMIT", 1]]
15309
+  (0.5ms) rollback transaction
15310
+  (0.1ms) begin transaction
15311
+ -----------------------------------------------------------------
15312
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
15313
+ -----------------------------------------------------------------
15314
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.560857') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15315
+  (0.1ms) SAVEPOINT active_record_1
15316
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.563629') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15317
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "httfbfU3E4XqARGcJHoP"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.562573"], ["updated_at", "2019-07-04 04:53:10.564390"], ["created_at", "2019-07-04 04:53:10.564390"]]
15318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15319
+  (0.0ms) SAVEPOINT active_record_1
15320
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:10.565836"], ["accepted_at", "2019-07-04 04:53:10.565836"], ["id", 1]]
15321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15322
+  (0.4ms) rollback transaction
15323
+  (0.0ms) begin transaction
15324
+ ----------------------------------------------------------------
15325
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
15326
+ ----------------------------------------------------------------
15327
+  (0.1ms) SAVEPOINT active_record_1
15328
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.568741') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15329
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VU4m9eZVZfX3uzCu6n3p"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 04:53:10.568426"], ["updated_at", "2019-07-04 04:53:10.569529"], ["created_at", "2019-07-04 04:53:10.569529"]]
15330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15331
+  (0.1ms) SAVEPOINT active_record_1
15332
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.572116') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15333
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
15334
+  (0.6ms) rollback transaction
15335
+  (0.0ms) begin transaction
15336
+ ----------------------------------------------------------------
15337
+ ProposalTest: test_should_return_proposals_for_proposer_instance
15338
+ ----------------------------------------------------------------
15339
+  (0.1ms) SAVEPOINT active_record_1
15340
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.575298"], ["updated_at", "2019-07-04 04:53:10.575298"]]
15341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15342
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.577233') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15343
+  (0.1ms) SAVEPOINT active_record_1
15344
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.579434') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15345
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "NPzJxeg3jzRtUhVM9nQq"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 04:53:10.578400"], ["updated_at", "2019-07-04 04:53:10.580257"], ["created_at", "2019-07-04 04:53:10.580257"]]
15346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15347
+ 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]]
15348
+  (0.4ms) rollback transaction
15349
+  (0.0ms) begin transaction
15350
+ --------------------------------------------------------
15351
+ ProposalTest: test_should_validate_arguments_with_a_proc
15352
+ --------------------------------------------------------
15353
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.582925') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15354
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.584344') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15355
+  (0.0ms) rollback transaction
15356
+  (0.0ms) begin transaction
15357
+ ---------------------------------------------
15358
+ ProposalTest: test_should_return_the_resource
15359
+ ---------------------------------------------
15360
+  (0.0ms) SAVEPOINT active_record_1
15361
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:10.585897"], ["updated_at", "2019-07-04 04:53:10.585897"]]
15362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15363
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.586969') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15364
+  (0.7ms) rollback transaction
15365
+  (0.1ms) begin transaction
15366
+ --------------------------------------------------
15367
+ ProposalTest: test_should_return_proposal_instance
15368
+ --------------------------------------------------
15369
+  (0.1ms) SAVEPOINT active_record_1
15370
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.591034"], ["updated_at", "2019-07-04 04:53:10.591034"]]
15371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15372
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.592264') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15373
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15374
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.594792') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15375
+  (0.4ms) rollback transaction
15376
+  (0.0ms) begin transaction
15377
+ ---------------------------------------------------------
15378
+ ProposalTest: test_should_validate_arguments_with_symbols
15379
+ ---------------------------------------------------------
15380
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.596677') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15381
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.598129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15382
+  (0.0ms) rollback transaction
15383
+  (0.0ms) begin transaction
15384
+ --------------------------------------------------------
15385
+ ProposalTest: test_should_validate_arguments_with_symbol
15386
+ --------------------------------------------------------
15387
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.599475') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15388
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.601185') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15389
+  (0.0ms) rollback transaction
15390
+  (0.0ms) begin transaction
15391
+ -----------------------------------------------------------
15392
+ ProposalTest: test_should_not_return_proposal_action_notify
15393
+ -----------------------------------------------------------
15394
+  (0.1ms) SAVEPOINT active_record_1
15395
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.602936"], ["updated_at", "2019-07-04 04:53:10.602936"]]
15396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15397
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.604108') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15398
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.605754') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15399
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15400
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.607898') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15401
+  (0.4ms) rollback transaction
15402
+  (0.0ms) begin transaction
15403
+ -----------------------------------------------------------------
15404
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
15405
+ -----------------------------------------------------------------
15406
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.609814') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15407
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.611952') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15408
+  (0.0ms) rollback transaction
15409
+  (0.0ms) begin transaction
15410
+ -------------------------------------------
15411
+ ProposalTest: test_should_set_reminded_safe
15412
+ -------------------------------------------
15413
+  (0.1ms) SAVEPOINT active_record_1
15414
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.613758"], ["updated_at", "2019-07-04 04:53:10.613758"]]
15415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15416
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.615138') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15417
+  (0.1ms) SAVEPOINT active_record_1
15418
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.616708') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15419
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tEpbgE5xp2kuzLedYThi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.616012"], ["updated_at", "2019-07-04 04:53:10.617375"], ["created_at", "2019-07-04 04:53:10.617375"]]
15420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15421
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.618361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15422
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15423
+  (0.1ms) SAVEPOINT active_record_1
15424
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:10.620016"], ["reminded_at", "2019-07-04 04:53:10.620016"], ["id", 1]]
15425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15426
+  (0.5ms) rollback transaction
15427
+  (0.1ms) begin transaction
15428
+ -----------------------------------------------------------
15429
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
15430
+ -----------------------------------------------------------
15431
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.623481') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15432
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.625620') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15433
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15434
+  (0.1ms) rollback transaction
15435
+  (0.0ms) begin transaction
15436
+ --------------------------------------------
15437
+ ProposalTest: test_user_should_have_proposal
15438
+ --------------------------------------------
15439
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.628444') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15440
+  (0.1ms) rollback transaction
15441
+  (0.0ms) begin transaction
15442
+ ----------------------------------------------------------------
15443
+ ProposalTest: test_should_return_proposals_for_resource_instance
15444
+ ----------------------------------------------------------------
15445
+  (0.1ms) SAVEPOINT active_record_1
15446
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.640089"], ["updated_at", "2019-07-04 04:53:10.640089"]]
15447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15448
+  (0.0ms) SAVEPOINT active_record_1
15449
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:10.641838"], ["updated_at", "2019-07-04 04:53:10.641838"]]
15450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15451
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.642782') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15452
+  (0.1ms) SAVEPOINT active_record_1
15453
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.644925') 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]]
15454
+ 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", "K6P9epNpswUfpWbpXBop"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:10.644116"], ["updated_at", "2019-07-04 04:53:10.645710"], ["created_at", "2019-07-04 04:53:10.645710"]]
15455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15456
+ 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]]
15457
+  (0.8ms) rollback transaction
15458
+  (0.1ms) begin transaction
15459
+ ----------------------------------------------
15460
+ ProposalTest: test_should_return_all_arguments
15461
+ ----------------------------------------------
15462
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.649071') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15463
+  (0.0ms) SAVEPOINT active_record_1
15464
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.650778') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15465
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "nv1irsFzzVL7cWrDHps3"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 04:53:10.650059"], ["updated_at", "2019-07-04 04:53:10.651402"], ["created_at", "2019-07-04 04:53:10.651402"]]
15466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15467
+ 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", "nv1irsFzzVL7cWrDHps3"], ["LIMIT", 1]]
15468
+  (0.7ms) rollback transaction
15469
+  (0.1ms) begin transaction
15470
+ -----------------------------------------------------------------------
15471
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
15472
+ -----------------------------------------------------------------------
15473
+  (0.1ms) SAVEPOINT active_record_1
15474
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:10.656986"], ["updated_at", "2019-07-04 04:53:10.656986"]]
15475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15476
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.658698') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15477
+  (0.1ms) SAVEPOINT active_record_1
15478
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.660923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15479
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "yMaKKDNypwzaD7tczxgH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.659929"], ["updated_at", "2019-07-04 04:53:10.661722"], ["created_at", "2019-07-04 04:53:10.661722"]]
15480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15481
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.662978') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15482
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15483
+  (0.7ms) rollback transaction
15484
+  (0.1ms) begin transaction
15485
+ -----------------------------------------------------------
15486
+ ProposalTest: test_should_not_return_proposal_action_invite
15487
+ -----------------------------------------------------------
15488
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.667031') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15489
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.668501') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15490
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15491
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.669903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15492
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15493
+  (0.1ms) rollback transaction
15494
+  (0.1ms) begin transaction
15495
+ ----------------------------------------------------------------
15496
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
15497
+ ----------------------------------------------------------------
15498
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.672481') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15499
+  (0.1ms) SAVEPOINT active_record_1
15500
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:10.675165') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15501
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "q6bTjm3qVNwxp2gyn9Gx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:10.674346"], ["updated_at", "2019-07-04 04:53:10.675906"], ["created_at", "2019-07-04 04:53:10.675906"]]
15502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15503
+  (0.4ms) rollback transaction
15504
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
15505
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
15506
+  (0.1ms) begin transaction
15507
+  (0.0ms) commit transaction
15508
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
15509
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
15510
+  (0.1ms) begin transaction
15511
+ -----------------------------------------------------------------
15512
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
15513
+ -----------------------------------------------------------------
15514
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.611475') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15515
+  (0.1ms) SAVEPOINT active_record_1
15516
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.650012') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15517
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "q3nbfQTi3y2HYyp6AYx8"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.640793"], ["updated_at", "2019-07-04 04:53:33.650979"], ["created_at", "2019-07-04 04:53:33.650979"]]
15518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15519
+  (0.0ms) SAVEPOINT active_record_1
15520
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:33.652639"], ["accepted_at", "2019-07-04 04:53:33.652639"], ["id", 1]]
15521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15522
+  (1.9ms) rollback transaction
15523
+  (0.1ms) begin transaction
15524
+ ----------------------------------------------------------------
15525
+ ProposalTest: test_should_return_proposals_for_resource_instance
15526
+ ----------------------------------------------------------------
15527
+  (0.0ms) SAVEPOINT active_record_1
15528
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.660937"], ["updated_at", "2019-07-04 04:53:33.660937"]]
15529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15530
+  (0.1ms) SAVEPOINT active_record_1
15531
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:33.666381"], ["updated_at", "2019-07-04 04:53:33.666381"]]
15532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15533
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.667410') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15534
+  (0.0ms) SAVEPOINT active_record_1
15535
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.669033') 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]]
15536
+ 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", "VaRR8MqidtovF8HCyyJv"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:33.668310"], ["updated_at", "2019-07-04 04:53:33.669746"], ["created_at", "2019-07-04 04:53:33.669746"]]
15537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15538
+ 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]]
15539
+  (0.6ms) rollback transaction
15540
+  (0.1ms) begin transaction
15541
+ ----------------------------------------------
15542
+ ProposalTest: test_should_return_all_arguments
15543
+ ----------------------------------------------
15544
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.674756') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15545
+  (0.1ms) SAVEPOINT active_record_1
15546
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.676741') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15547
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "2mX97JaeWatczpLHr4Ea"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 04:53:33.675943"], ["updated_at", "2019-07-04 04:53:33.677475"], ["created_at", "2019-07-04 04:53:33.677475"]]
15548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15549
+ 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", "2mX97JaeWatczpLHr4Ea"], ["LIMIT", 1]]
15550
+  (0.4ms) rollback transaction
15551
+  (0.0ms) begin transaction
15552
+ ---------------------------------------------
15553
+ ProposalTest: test_should_return_the_resource
15554
+ ---------------------------------------------
15555
+  (0.0ms) SAVEPOINT active_record_1
15556
+ Project Create (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:33.681853"], ["updated_at", "2019-07-04 04:53:33.681853"]]
15557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15558
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.682974') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15559
+  (0.7ms) rollback transaction
15560
+  (0.1ms) begin transaction
15561
+ ----------------------------------------------------------------
15562
+ ProposalTest: test_should_return_proposals_for_proposer_instance
15563
+ ----------------------------------------------------------------
15564
+  (0.1ms) SAVEPOINT active_record_1
15565
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.686385"], ["updated_at", "2019-07-04 04:53:33.686385"]]
15566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15567
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.687609') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15568
+  (0.1ms) SAVEPOINT active_record_1
15569
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.689664') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15570
+ 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", "rxfAg8WM6T12Zj2bsz74"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 04:53:33.688489"], ["updated_at", "2019-07-04 04:53:33.692032"], ["created_at", "2019-07-04 04:53:33.692032"]]
15571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15572
+ 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]]
15573
+  (0.5ms) rollback transaction
15574
+  (0.1ms) begin transaction
15575
+ -----------------------------------------------------------
15576
+ ProposalTest: test_should_not_return_proposal_action_notify
15577
+ -----------------------------------------------------------
15578
+  (0.1ms) SAVEPOINT active_record_1
15579
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.696247"], ["updated_at", "2019-07-04 04:53:33.696247"]]
15580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15581
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.697402') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15582
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.698676') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15583
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15584
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.700603') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15585
+  (0.4ms) rollback transaction
15586
+  (0.0ms) begin transaction
15587
+ --------------------------------------------------
15588
+ ProposalTest: test_should_return_proposal_instance
15589
+ --------------------------------------------------
15590
+  (0.1ms) SAVEPOINT active_record_1
15591
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.702998"], ["updated_at", "2019-07-04 04:53:33.702998"]]
15592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15593
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.704204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15594
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15595
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.708575') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15596
+  (0.4ms) rollback transaction
15597
+  (0.0ms) begin transaction
15598
+ --------------------------------------------------------
15599
+ ProposalTest: test_should_validate_arguments_with_symbol
15600
+ --------------------------------------------------------
15601
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.710508') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15602
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.711946') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15603
+  (0.0ms) rollback transaction
15604
+  (0.0ms) begin transaction
15605
+ -------------------------------------------
15606
+ ProposalTest: test_should_set_reminded_bang
15607
+ -------------------------------------------
15608
+  (0.0ms) SAVEPOINT active_record_1
15609
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.713569"], ["updated_at", "2019-07-04 04:53:33.713569"]]
15610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15611
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.714646') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15612
+  (0.0ms) SAVEPOINT active_record_1
15613
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.716087') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15614
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "b3MFFxqjXbtsVtfMKxB9"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.715427"], ["updated_at", "2019-07-04 04:53:33.717094"], ["created_at", "2019-07-04 04:53:33.717094"]]
15615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15616
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.718296') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15617
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15618
+  (0.0ms) SAVEPOINT active_record_1
15619
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:33.720502"], ["reminded_at", "2019-07-04 04:53:33.720502"], ["id", 1]]
15620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15621
+  (0.5ms) rollback transaction
15622
+  (0.1ms) begin transaction
15623
+ -----------------------------------------------------------------
15624
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
15625
+ -----------------------------------------------------------------
15626
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.723883') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15627
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.726129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15628
+  (0.1ms) rollback transaction
15629
+  (0.0ms) begin transaction
15630
+ -----------------------------------------------------------
15631
+ ProposalTest: test_should_not_return_proposal_action_invite
15632
+ -----------------------------------------------------------
15633
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.727917') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15634
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.729288') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15635
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15636
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.730547') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15637
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15638
+  (0.0ms) rollback transaction
15639
+  (0.0ms) begin transaction
15640
+ -------------------------------------------
15641
+ ProposalTest: test_should_accept_a_resource
15642
+ -------------------------------------------
15643
+  (0.1ms) SAVEPOINT active_record_1
15644
+ Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:33.732425"], ["updated_at", "2019-07-04 04:53:33.732425"]]
15645
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15646
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.734605') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15647
+  (0.1ms) SAVEPOINT active_record_1
15648
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.736574') 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]]
15649
+ 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", "X4pnJ8bEFiNaPc3TXUxt"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:33.735779"], ["updated_at", "2019-07-04 04:53:33.737839"], ["created_at", "2019-07-04 04:53:33.737839"]]
15650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15651
+  (0.0ms) SAVEPOINT active_record_1
15652
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:33.739848"], ["updated_at", "2019-07-04 04:53:33.739848"]]
15653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15654
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.740884') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15655
+  (0.1ms) SAVEPOINT active_record_1
15656
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.742616') 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]]
15657
+ 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", "AdwUc8hoQX6gFRDvC8yx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 04:53:33.741754"], ["updated_at", "2019-07-04 04:53:33.743966"], ["created_at", "2019-07-04 04:53:33.743966"]]
15658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15659
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.745361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15660
+  (0.8ms) rollback transaction
15661
+  (0.0ms) begin transaction
15662
+ -----------------------------------------------------
15663
+ ProposalTest: test_should_create_valid_proposal_token
15664
+ -----------------------------------------------------
15665
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.748131') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15666
+  (0.0ms) SAVEPOINT active_record_1
15667
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.749929') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15668
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2sVgvb3swrWrPK62jppi"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.749103"], ["updated_at", "2019-07-04 04:53:33.750961"], ["created_at", "2019-07-04 04:53:33.750961"]]
15669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15670
+  (0.5ms) rollback transaction
15671
+  (0.0ms) begin transaction
15672
+ --------------------------------------------------
15673
+ ProposalTest: test_should_find_and_accept_proposal
15674
+ --------------------------------------------------
15675
+  (0.0ms) SAVEPOINT active_record_1
15676
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.753904"], ["updated_at", "2019-07-04 04:53:33.753904"]]
15677
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15678
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.755774') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15679
+  (0.1ms) SAVEPOINT active_record_1
15680
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.758189') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15681
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uPh9xQNVQRtyzjqBEeso"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.757037"], ["updated_at", "2019-07-04 04:53:33.759173"], ["created_at", "2019-07-04 04:53:33.759173"]]
15682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15683
+ 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", "uPh9xQNVQRtyzjqBEeso"], ["LIMIT", 1]]
15684
+  (0.0ms) SAVEPOINT active_record_1
15685
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:33.761294"], ["accepted_at", "2019-07-04 04:53:33.761294"], ["id", 1]]
15686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15687
+  (0.4ms) rollback transaction
15688
+  (0.0ms) begin transaction
15689
+ -----------------------------------------------------------
15690
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
15691
+ -----------------------------------------------------------
15692
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.763270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15693
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.764835') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15694
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15695
+  (0.0ms) rollback transaction
15696
+  (0.0ms) begin transaction
15697
+ ------------------------------------------------------------
15698
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
15699
+ ------------------------------------------------------------
15700
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.766854') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15701
+  (0.1ms) SAVEPOINT active_record_1
15702
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.768929') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15703
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "PH5NRpVXWUSxcRxFJz4W"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 04:53:33.768166"], ["updated_at", "2019-07-04 04:53:33.769690"], ["created_at", "2019-07-04 04:53:33.769690"]]
15704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15705
+ 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", "PH5NRpVXWUSxcRxFJz4W"], ["LIMIT", 1]]
15706
+  (0.8ms) rollback transaction
15707
+  (0.1ms) begin transaction
15708
+ --------------------------------------------------------
15709
+ ProposalTest: test_should_validate_arguments_with_a_proc
15710
+ --------------------------------------------------------
15711
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.775155') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15712
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.776655') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15713
+  (0.0ms) rollback transaction
15714
+  (0.0ms) begin transaction
15715
+ -----------------------------------------------------------------------
15716
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
15717
+ -----------------------------------------------------------------------
15718
+  (0.0ms) SAVEPOINT active_record_1
15719
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.778383"], ["updated_at", "2019-07-04 04:53:33.778383"]]
15720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15721
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.780096') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15722
+  (0.1ms) SAVEPOINT active_record_1
15723
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.781754') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15724
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "RDp7fkN5AMRNs6xzzEhW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.780930"], ["updated_at", "2019-07-04 04:53:33.782544"], ["created_at", "2019-07-04 04:53:33.782544"]]
15725
+  (10.9ms) RELEASE SAVEPOINT active_record_1
15726
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.794575') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15727
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15728
+  (0.4ms) rollback transaction
15729
+  (0.0ms) begin transaction
15730
+ ---------------------------------------------------------
15731
+ ProposalTest: test_should_validate_arguments_with_symbols
15732
+ ---------------------------------------------------------
15733
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.797982') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15734
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.799457') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15735
+  (0.0ms) rollback transaction
15736
+  (0.1ms) begin transaction
15737
+ --------------------------------------------
15738
+ ProposalTest: test_user_should_have_proposal
15739
+ --------------------------------------------
15740
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.801241') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15741
+  (0.0ms) rollback transaction
15742
+  (0.0ms) begin transaction
15743
+ ------------------------------------------------------
15744
+ ProposalTest: test_should_not_return_proposal_instance
15745
+ ------------------------------------------------------
15746
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.803389') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15747
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15748
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15749
+  (0.1ms) rollback transaction
15750
+  (0.1ms) begin transaction
15751
+ -------------------------------------------------------
15752
+ ProposalTest: test_should_return_token_from_to_s_method
15753
+ -------------------------------------------------------
15754
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.807799') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15755
+  (0.1ms) SAVEPOINT active_record_1
15756
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.809719') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15757
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jD8vUALcVG4Nhew8a3WD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.808996"], ["updated_at", "2019-07-04 04:53:33.810403"], ["created_at", "2019-07-04 04:53:33.810403"]]
15758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15759
+  (0.4ms) rollback transaction
15760
+  (0.0ms) begin transaction
15761
+ ----------------------------------------------------------
15762
+ ProposalTest: test_should_not_return_no_action_if_accepted
15763
+ ----------------------------------------------------------
15764
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.812558') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15765
+  (0.0ms) SAVEPOINT active_record_1
15766
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.814143') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15767
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "JaWbTUzsHTggyoWLqztH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.813476"], ["updated_at", "2019-07-04 04:53:33.815006"], ["created_at", "2019-07-04 04:53:33.815006"]]
15768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15769
+  (0.0ms) SAVEPOINT active_record_1
15770
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:33.816390"], ["accepted_at", "2019-07-04 04:53:33.816390"], ["id", 1]]
15771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15772
+  (0.6ms) rollback transaction
15773
+  (0.0ms) begin transaction
15774
+ -------------------------------------------------
15775
+ ProposalTest: test_should_respond_to_the_resource
15776
+ -------------------------------------------------
15777
+  (0.1ms) SAVEPOINT active_record_1
15778
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.819243"], ["updated_at", "2019-07-04 04:53:33.819243"]]
15779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15780
+  (0.0ms) SAVEPOINT active_record_1
15781
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:33.820669"], ["updated_at", "2019-07-04 04:53:33.820669"]]
15782
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15783
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.822689') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15784
+  (0.7ms) rollback transaction
15785
+  (0.0ms) begin transaction
15786
+ ------------------------
15787
+ ProposalTest: test_truth
15788
+ ------------------------
15789
+  (0.0ms) rollback transaction
15790
+  (0.0ms) begin transaction
15791
+ ----------------------------------------------------------------------
15792
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
15793
+ ----------------------------------------------------------------------
15794
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.826312') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15795
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.827747') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15796
+  (0.0ms) SAVEPOINT active_record_1
15797
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
15798
+  (0.0ms) rollback transaction
15799
+  (0.1ms) begin transaction
15800
+ -------------------------------------------------------
15801
+ ProposalTest: test_should_return_all_proposals_for_type
15802
+ -------------------------------------------------------
15803
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.831424') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15804
+  (0.1ms) SAVEPOINT active_record_1
15805
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.833415') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15806
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PLAFE63ku3Ln3R6EbohR"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.832405"], ["updated_at", "2019-07-04 04:53:33.834557"], ["created_at", "2019-07-04 04:53:33.834557"]]
15807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15808
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
15809
+  (0.4ms) rollback transaction
15810
+  (0.2ms) begin transaction
15811
+ -------------------------------------------
15812
+ ProposalTest: test_should_set_reminded_safe
15813
+ -------------------------------------------
15814
+  (0.2ms) SAVEPOINT active_record_1
15815
+ User Create (1.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.839986"], ["updated_at", "2019-07-04 04:53:33.839986"]]
15816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15817
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.843905') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15818
+  (0.0ms) SAVEPOINT active_record_1
15819
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.845711') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15820
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qNxLQrqyqR5HKTzpcyGc"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.844988"], ["updated_at", "2019-07-04 04:53:33.846473"], ["created_at", "2019-07-04 04:53:33.846473"]]
15821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15822
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.847549') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15823
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15824
+  (0.2ms) SAVEPOINT active_record_1
15825
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:33.849993"], ["reminded_at", "2019-07-04 04:53:33.849993"], ["id", 1]]
15826
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15827
+  (0.5ms) rollback transaction
15828
+  (0.1ms) begin transaction
15829
+ ------------------------------------------------------------------
15830
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
15831
+ ------------------------------------------------------------------
15832
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.853886') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15833
+  (0.1ms) SAVEPOINT active_record_1
15834
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.856411') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15835
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "5GUnzHwsYKqKLZiygnyZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.855337"], ["updated_at", "2019-07-04 04:53:33.857263"], ["created_at", "2019-07-04 04:53:33.857263"]]
15836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15837
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.858467') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15838
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15839
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15840
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15841
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15842
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15843
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15844
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15846
+  (0.5ms) rollback transaction
15847
+  (0.0ms) begin transaction
15848
+ ---------------------------------------------------------------------
15849
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
15850
+ ---------------------------------------------------------------------
15851
+  (0.1ms) SAVEPOINT active_record_1
15852
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:53:33.864589"], ["updated_at", "2019-07-04 04:53:33.864589"]]
15853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15854
+  (0.1ms) SAVEPOINT active_record_1
15855
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.866244"], ["updated_at", "2019-07-04 04:53:33.866244"]]
15856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15857
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.868711') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15858
+  (0.1ms) SAVEPOINT active_record_1
15859
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.871070') 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]]
15860
+ 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", "Y98sz6b38c1X8K8hYwX6"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:33.870060"], ["updated_at", "2019-07-04 04:53:33.872195"], ["created_at", "2019-07-04 04:53:33.872195"]]
15861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15862
+  (0.1ms) SAVEPOINT active_record_1
15863
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:53:33.873716"], ["accepted_at", "2019-07-04 04:53:33.873716"], ["id", 1]]
15864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15865
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.875169') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
15866
+  (0.1ms) SAVEPOINT active_record_1
15867
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.877032') 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]]
15868
+ 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", "qmxhNN25dwFarJKaGysy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:53:33.876237"], ["updated_at", "2019-07-04 04:53:33.877893"], ["created_at", "2019-07-04 04:53:33.877893"]]
15869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15870
+  (0.6ms) rollback transaction
15871
+  (0.1ms) begin transaction
15872
+ ----------------------------------------------------------------
15873
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
15874
+ ----------------------------------------------------------------
15875
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.880792') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15876
+  (0.0ms) SAVEPOINT active_record_1
15877
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.882785') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15878
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "5pqFosqcDgw47nUT3Di3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:53:33.881905"], ["updated_at", "2019-07-04 04:53:33.884912"], ["created_at", "2019-07-04 04:53:33.884912"]]
15879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15880
+  (0.7ms) rollback transaction
15881
+  (0.1ms) begin transaction
15882
+ ----------------------------------------------------------------
15883
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
15884
+ ----------------------------------------------------------------
15885
+  (0.1ms) SAVEPOINT active_record_1
15886
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.890558') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15887
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zQ5BzQNHDpHyz9EFAkXE"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 04:53:33.890131"], ["updated_at", "2019-07-04 04:53:33.892173"], ["created_at", "2019-07-04 04:53:33.892173"]]
15888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15889
+  (0.1ms) SAVEPOINT active_record_1
15890
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.894222') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15891
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
15892
+  (0.4ms) rollback transaction
15893
+  (0.0ms) begin transaction
15894
+ --------------------------------------------------
15895
+ ProposalTest: test_should_respond_to_the_recipient
15896
+ --------------------------------------------------
15897
+  (0.1ms) SAVEPOINT active_record_1
15898
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:53:33.896929"], ["updated_at", "2019-07-04 04:53:33.896929"]]
15899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15900
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:53:33.898284') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15901
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15902
+  (0.7ms) rollback transaction
15903
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
15904
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
15905
+  (0.0ms) begin transaction
15906
+  (0.0ms) commit transaction
15907
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
15908
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
15909
+  (0.1ms) begin transaction
15910
+ --------------------------------------------------------
15911
+ ProposalTest: test_should_validate_arguments_with_symbol
15912
+ --------------------------------------------------------
15913
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.148153') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15914
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.187748') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15915
+  (0.1ms) rollback transaction
15916
+  (0.1ms) begin transaction
15917
+ --------------------------------------------
15918
+ ProposalTest: test_user_should_have_proposal
15919
+ --------------------------------------------
15920
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.190574') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15921
+  (0.1ms) rollback transaction
15922
+  (0.1ms) begin transaction
15923
+ --------------------------------------------------
15924
+ ProposalTest: test_should_return_proposal_instance
15925
+ --------------------------------------------------
15926
+  (0.1ms) SAVEPOINT active_record_1
15927
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.198227"], ["updated_at", "2019-07-04 04:54:02.198227"]]
15928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15929
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.200136') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15930
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15931
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.203340') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15932
+  (0.5ms) rollback transaction
15933
+  (0.1ms) begin transaction
15934
+ -----------------------------------------------------------------
15935
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
15936
+ -----------------------------------------------------------------
15937
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.205791') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15938
+  (0.1ms) SAVEPOINT active_record_1
15939
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.207897') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15940
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "B44jpH2jLP6dzYqaCEqQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.207003"], ["updated_at", "2019-07-04 04:54:02.209312"], ["created_at", "2019-07-04 04:54:02.209312"]]
15941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15942
+  (0.1ms) SAVEPOINT active_record_1
15943
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:54:02.211400"], ["accepted_at", "2019-07-04 04:54:02.211400"], ["id", 1]]
15944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15945
+  (0.4ms) rollback transaction
15946
+  (0.0ms) begin transaction
15947
+ ----------------------------------------------------------
15948
+ ProposalTest: test_should_not_return_no_action_if_accepted
15949
+ ----------------------------------------------------------
15950
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.213686') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15951
+  (0.1ms) SAVEPOINT active_record_1
15952
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.215321') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15953
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "shPqw3cPHKzjuDTYbhGZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.214606"], ["updated_at", "2019-07-04 04:54:02.215977"], ["created_at", "2019-07-04 04:54:02.215977"]]
15954
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15955
+  (0.0ms) SAVEPOINT active_record_1
15956
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:54:02.217755"], ["accepted_at", "2019-07-04 04:54:02.217755"], ["id", 1]]
15957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15958
+  (0.5ms) rollback transaction
15959
+  (0.0ms) begin transaction
15960
+ -------------------------------------------
15961
+ ProposalTest: test_should_set_reminded_safe
15962
+ -------------------------------------------
15963
+  (0.1ms) SAVEPOINT active_record_1
15964
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.220499"], ["updated_at", "2019-07-04 04:54:02.220499"]]
15965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15966
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.221917') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15967
+  (0.1ms) SAVEPOINT active_record_1
15968
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.225330') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15969
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "KF8CzShGNLVus3zESmxm"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.223535"], ["updated_at", "2019-07-04 04:54:02.226194"], ["created_at", "2019-07-04 04:54:02.226194"]]
15970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15971
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.227475') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15972
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15973
+  (0.0ms) SAVEPOINT active_record_1
15974
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:54:02.229197"], ["reminded_at", "2019-07-04 04:54:02.229197"], ["id", 1]]
15975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15976
+  (0.6ms) rollback transaction
15977
+  (0.0ms) begin transaction
15978
+ -------------------------------------------------------
15979
+ ProposalTest: test_should_return_all_proposals_for_type
15980
+ -------------------------------------------------------
15981
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.231218') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15982
+  (0.1ms) SAVEPOINT active_record_1
15983
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.233024') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15984
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "twTypEGBPfKDsx655yxP"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.232309"], ["updated_at", "2019-07-04 04:54:02.234133"], ["created_at", "2019-07-04 04:54:02.234133"]]
15985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15986
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
15987
+  (0.4ms) rollback transaction
15988
+  (0.0ms) begin transaction
15989
+ -----------------------------------------------------------
15990
+ ProposalTest: test_should_not_return_proposal_action_invite
15991
+ -----------------------------------------------------------
15992
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.237328') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15993
+ Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.239697') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15994
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15995
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.242260') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
15996
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
15997
+  (0.1ms) rollback transaction
15998
+  (0.1ms) begin transaction
15999
+ -------------------------------------------------
16000
+ ProposalTest: test_should_respond_to_the_resource
16001
+ -------------------------------------------------
16002
+  (0.1ms) SAVEPOINT active_record_1
16003
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.245286"], ["updated_at", "2019-07-04 04:54:02.245286"]]
16004
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16005
+  (0.1ms) SAVEPOINT active_record_1
16006
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:54:02.252106"], ["updated_at", "2019-07-04 04:54:02.252106"]]
16007
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16008
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.253214') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16009
+  (0.6ms) rollback transaction
16010
+  (0.1ms) begin transaction
16011
+ ------------------------------------------------------------------
16012
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
16013
+ ------------------------------------------------------------------
16014
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.256551') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16015
+  (0.1ms) SAVEPOINT active_record_1
16016
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.258687') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16017
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "j9MTeYUKv42QZ4wHQiWy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.257835"], ["updated_at", "2019-07-04 04:54:02.259403"], ["created_at", "2019-07-04 04:54:02.259403"]]
16018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16019
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.260664') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16020
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16021
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16022
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16023
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16024
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16025
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16026
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16027
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16028
+  (0.6ms) rollback transaction
16029
+  (0.0ms) begin transaction
16030
+ ----------------------------------------------------------------
16031
+ ProposalTest: test_should_return_proposals_for_proposer_instance
16032
+ ----------------------------------------------------------------
16033
+  (0.0ms) SAVEPOINT active_record_1
16034
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.266616"], ["updated_at", "2019-07-04 04:54:02.266616"]]
16035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16036
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.268160') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16037
+  (0.0ms) SAVEPOINT active_record_1
16038
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.269835') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16039
+ 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", "KrdWaaizqcKAVh7eabAe"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 04:54:02.269061"], ["updated_at", "2019-07-04 04:54:02.270548"], ["created_at", "2019-07-04 04:54:02.270548"]]
16040
+  (0.2ms) RELEASE SAVEPOINT active_record_1
16041
+ 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]]
16042
+  (0.7ms) rollback transaction
16043
+  (0.1ms) begin transaction
16044
+ -----------------------------------------------------
16045
+ ProposalTest: test_should_create_valid_proposal_token
16046
+ -----------------------------------------------------
16047
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.275379') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16048
+  (0.1ms) SAVEPOINT active_record_1
16049
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.277481') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16050
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zpddiSThq9Hc45csSbnB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.276618"], ["updated_at", "2019-07-04 04:54:02.278403"], ["created_at", "2019-07-04 04:54:02.278403"]]
16051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16052
+  (0.6ms) rollback transaction
16053
+  (0.1ms) begin transaction
16054
+ --------------------------------------------------------
16055
+ ProposalTest: test_should_validate_arguments_with_a_proc
16056
+ --------------------------------------------------------
16057
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.281297') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16058
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.283370') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16059
+  (0.1ms) rollback transaction
16060
+  (0.1ms) begin transaction
16061
+ -----------------------------------------------------------
16062
+ ProposalTest: test_should_not_return_proposal_action_notify
16063
+ -----------------------------------------------------------
16064
+  (0.1ms) SAVEPOINT active_record_1
16065
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.285938"], ["updated_at", "2019-07-04 04:54:02.285938"]]
16066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16067
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.287479') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16068
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.289856') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16069
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16070
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.291909') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16071
+  (0.5ms) rollback transaction
16072
+  (0.0ms) begin transaction
16073
+ ----------------------------------------------------------------
16074
+ ProposalTest: test_should_return_proposals_for_resource_instance
16075
+ ----------------------------------------------------------------
16076
+  (0.1ms) SAVEPOINT active_record_1
16077
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.294230"], ["updated_at", "2019-07-04 04:54:02.294230"]]
16078
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16079
+  (0.0ms) SAVEPOINT active_record_1
16080
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:54:02.295581"], ["updated_at", "2019-07-04 04:54:02.295581"]]
16081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16082
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.296341') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16083
+  (0.1ms) SAVEPOINT active_record_1
16084
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.298572') 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]]
16085
+ 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", "AyncCmaasRw6K6c7ASQu"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:54:02.297408"], ["updated_at", "2019-07-04 04:54:02.299477"], ["created_at", "2019-07-04 04:54:02.299477"]]
16086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16087
+ 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]]
16088
+  (0.7ms) rollback transaction
16089
+  (0.0ms) begin transaction
16090
+ ------------------------------------------------------------
16091
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
16092
+ ------------------------------------------------------------
16093
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.303048') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16094
+  (0.1ms) SAVEPOINT active_record_1
16095
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.305271') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16096
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "EfEJYMazMWeg2BCb8Kqq"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 04:54:02.304105"], ["updated_at", "2019-07-04 04:54:02.306328"], ["created_at", "2019-07-04 04:54:02.306328"]]
16097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16098
+ 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", "EfEJYMazMWeg2BCb8Kqq"], ["LIMIT", 1]]
16099
+  (0.4ms) rollback transaction
16100
+  (0.0ms) begin transaction
16101
+ ---------------------------------------------------------
16102
+ ProposalTest: test_should_validate_arguments_with_symbols
16103
+ ---------------------------------------------------------
16104
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.311302') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16105
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.312760') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16106
+  (0.1ms) rollback transaction
16107
+  (0.0ms) begin transaction
16108
+ ---------------------------------------------------------------------
16109
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
16110
+ ---------------------------------------------------------------------
16111
+  (0.0ms) SAVEPOINT active_record_1
16112
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:54:02.314670"], ["updated_at", "2019-07-04 04:54:02.314670"]]
16113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16114
+  (0.0ms) SAVEPOINT active_record_1
16115
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.316468"], ["updated_at", "2019-07-04 04:54:02.316468"]]
16116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16117
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.317763') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16118
+  (0.0ms) SAVEPOINT active_record_1
16119
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.319449') 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]]
16120
+ 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", "F73MdoyssxVqC16pPQcF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:54:02.318711"], ["updated_at", "2019-07-04 04:54:02.320198"], ["created_at", "2019-07-04 04:54:02.320198"]]
16121
+  (0.2ms) RELEASE SAVEPOINT active_record_1
16122
+  (0.1ms) SAVEPOINT active_record_1
16123
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:54:02.322176"], ["accepted_at", "2019-07-04 04:54:02.322176"], ["id", 1]]
16124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16125
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.323168') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16126
+  (0.0ms) SAVEPOINT active_record_1
16127
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.325102') 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]]
16128
+ 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", "7zYdzPNsxeWHcSueDVN4"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:54:02.324196"], ["updated_at", "2019-07-04 04:54:02.336062"], ["created_at", "2019-07-04 04:54:02.336062"]]
16129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16130
+  (0.8ms) rollback transaction
16131
+  (0.1ms) begin transaction
16132
+ ----------------------------------------------
16133
+ ProposalTest: test_should_return_all_arguments
16134
+ ----------------------------------------------
16135
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.339132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16136
+  (0.1ms) SAVEPOINT active_record_1
16137
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.340924') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16138
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "RZyirqHMe56TNgxzF3JL"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 04:54:02.340111"], ["updated_at", "2019-07-04 04:54:02.341762"], ["created_at", "2019-07-04 04:54:02.341762"]]
16139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16140
+ 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", "RZyirqHMe56TNgxzF3JL"], ["LIMIT", 1]]
16141
+  (0.4ms) rollback transaction
16142
+  (0.0ms) begin transaction
16143
+ --------------------------------------------------
16144
+ ProposalTest: test_should_find_and_accept_proposal
16145
+ --------------------------------------------------
16146
+  (0.1ms) SAVEPOINT active_record_1
16147
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.345896"], ["updated_at", "2019-07-04 04:54:02.345896"]]
16148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16149
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.347081') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16150
+  (0.0ms) SAVEPOINT active_record_1
16151
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.348579') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16152
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tDVVmCuytEpqG1xpRw2q"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.347902"], ["updated_at", "2019-07-04 04:54:02.349491"], ["created_at", "2019-07-04 04:54:02.349491"]]
16153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16154
+ 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", "tDVVmCuytEpqG1xpRw2q"], ["LIMIT", 1]]
16155
+  (0.0ms) SAVEPOINT active_record_1
16156
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:54:02.351469"], ["accepted_at", "2019-07-04 04:54:02.351469"], ["id", 1]]
16157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16158
+  (0.4ms) rollback transaction
16159
+  (0.0ms) begin transaction
16160
+ ----------------------------------------------------------------
16161
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
16162
+ ----------------------------------------------------------------
16163
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.353395') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16164
+  (0.1ms) SAVEPOINT active_record_1
16165
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.355368') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16166
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "sDs3neqnjHiuC986jQT7"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.354425"], ["updated_at", "2019-07-04 04:54:02.356316"], ["created_at", "2019-07-04 04:54:02.356316"]]
16167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16168
+  (0.6ms) rollback transaction
16169
+  (0.1ms) begin transaction
16170
+ ------------------------------------------------------
16171
+ ProposalTest: test_should_not_return_proposal_instance
16172
+ ------------------------------------------------------
16173
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.359352') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16174
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16175
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16176
+  (0.0ms) rollback transaction
16177
+  (0.0ms) begin transaction
16178
+ ----------------------------------------------------------------
16179
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
16180
+ ----------------------------------------------------------------
16181
+  (0.0ms) SAVEPOINT active_record_1
16182
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.362996') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16183
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "UAqZvxTzTcdpYKxxxr6p"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 04:54:02.362675"], ["updated_at", "2019-07-04 04:54:02.363991"], ["created_at", "2019-07-04 04:54:02.363991"]]
16184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16185
+  (0.0ms) SAVEPOINT active_record_1
16186
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.366015') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16187
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
16188
+  (0.5ms) rollback transaction
16189
+  (0.1ms) begin transaction
16190
+ -------------------------------------------------------
16191
+ ProposalTest: test_should_return_token_from_to_s_method
16192
+ -------------------------------------------------------
16193
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.369094') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16194
+  (0.1ms) SAVEPOINT active_record_1
16195
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.371354') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16196
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rrFpHsZ1zxq9ZBsJA9tL"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.370189"], ["updated_at", "2019-07-04 04:54:02.372652"], ["created_at", "2019-07-04 04:54:02.372652"]]
16197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16198
+  (0.7ms) rollback transaction
16199
+  (0.1ms) begin transaction
16200
+ ------------------------
16201
+ ProposalTest: test_truth
16202
+ ------------------------
16203
+  (0.1ms) rollback transaction
16204
+  (0.1ms) begin transaction
16205
+ -------------------------------------------
16206
+ ProposalTest: test_should_set_reminded_bang
16207
+ -------------------------------------------
16208
+  (0.1ms) SAVEPOINT active_record_1
16209
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.377371"], ["updated_at", "2019-07-04 04:54:02.377371"]]
16210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16211
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.378781') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16212
+  (0.1ms) SAVEPOINT active_record_1
16213
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.380607') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16214
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Zq8GYx42h6zUGpjqk68W"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.379790"], ["updated_at", "2019-07-04 04:54:02.381489"], ["created_at", "2019-07-04 04:54:02.381489"]]
16215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16216
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.382762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16218
+  (0.1ms) SAVEPOINT active_record_1
16219
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:54:02.385705"], ["reminded_at", "2019-07-04 04:54:02.385705"], ["id", 1]]
16220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16221
+  (0.9ms) rollback transaction
16222
+  (0.2ms) begin transaction
16223
+ -----------------------------------------------------------------------
16224
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
16225
+ -----------------------------------------------------------------------
16226
+  (0.1ms) SAVEPOINT active_record_1
16227
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.389398"], ["updated_at", "2019-07-04 04:54:02.389398"]]
16228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16229
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.390976') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16230
+  (0.1ms) SAVEPOINT active_record_1
16231
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.392950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16232
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "1LJkxqZUvUjjAp3UHpy4"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.392143"], ["updated_at", "2019-07-04 04:54:02.393826"], ["created_at", "2019-07-04 04:54:02.393826"]]
16233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16234
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.395130') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16235
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16236
+  (0.4ms) rollback transaction
16237
+  (0.0ms) begin transaction
16238
+ --------------------------------------------------
16239
+ ProposalTest: test_should_respond_to_the_recipient
16240
+ --------------------------------------------------
16241
+  (0.1ms) SAVEPOINT active_record_1
16242
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 04:54:02.398409"], ["updated_at", "2019-07-04 04:54:02.398409"]]
16243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16244
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.399671') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16246
+  (0.5ms) rollback transaction
16247
+  (0.0ms) begin transaction
16248
+ -----------------------------------------------------------
16249
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
16250
+ -----------------------------------------------------------
16251
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.403112') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16252
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.404881') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16253
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
16254
+  (0.1ms) rollback transaction
16255
+  (0.0ms) begin transaction
16256
+ -----------------------------------------------------------------
16257
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
16258
+ -----------------------------------------------------------------
16259
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.407658') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16260
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.409456') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16261
+  (0.1ms) rollback transaction
16262
+  (0.1ms) begin transaction
16263
+ ----------------------------------------------------------------------
16264
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
16265
+ ----------------------------------------------------------------------
16266
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.411144') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16267
+  (0.1ms) SAVEPOINT active_record_1
16268
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.412934') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
16269
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Msqnnn4rkGEyJ9xrLDNm"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 04:54:02.412086"], ["updated_at", "2019-07-04 04:54:02.413675"], ["created_at", "2019-07-04 04:54:02.413675"]]
16270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16271
+  (0.0ms) SAVEPOINT active_record_1
16272
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 04:54:02.415148"], ["accepted_at", "2019-07-04 04:54:02.415148"], ["id", 1]]
16273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16274
+  (0.6ms) rollback transaction
16275
+  (0.1ms) begin transaction
16276
+ -------------------------------------------
16277
+ ProposalTest: test_should_accept_a_resource
16278
+ -------------------------------------------
16279
+  (0.1ms) SAVEPOINT active_record_1
16280
+ Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:54:02.417775"], ["updated_at", "2019-07-04 04:54:02.417775"]]
16281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16282
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.419132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16283
+  (0.0ms) SAVEPOINT active_record_1
16284
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.420883') 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]]
16285
+ 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", "i7Rtd64ZzsAdpsrvHLbc"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 04:54:02.420068"], ["updated_at", "2019-07-04 04:54:02.422204"], ["created_at", "2019-07-04 04:54:02.422204"]]
16286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16287
+  (0.1ms) SAVEPOINT active_record_1
16288
+ Project Create (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:54:02.424164"], ["updated_at", "2019-07-04 04:54:02.424164"]]
16289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16290
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.425682') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16291
+  (0.0ms) SAVEPOINT active_record_1
16292
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.427330') 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]]
16293
+ 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", "meqVReVMqRmFx3qPBGr6"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 04:54:02.426595"], ["updated_at", "2019-07-04 04:54:02.428215"], ["created_at", "2019-07-04 04:54:02.428215"]]
16294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16295
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.429209') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16296
+  (0.5ms) rollback transaction
16297
+  (0.0ms) begin transaction
16298
+ ---------------------------------------------
16299
+ ProposalTest: test_should_return_the_resource
16300
+ ---------------------------------------------
16301
+  (0.1ms) SAVEPOINT active_record_1
16302
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 04:54:02.431688"], ["updated_at", "2019-07-04 04:54:02.431688"]]
16303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16304
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 04:54:02.432837') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? 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]]
16305
+  (0.6ms) rollback transaction