proposal 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c9bdea5c812a3d4a267f22812b416e9d6ab2bc3057a936e6a6b6c6a5a0e4f51
4
- data.tar.gz: 1110098093f592f474972ba33f78cc83a3aa930f9602d8906320917d4c14b01e
3
+ metadata.gz: 77860bb6b7c6083bf2954e3fc7dc6df17a62f17f75f09c6c5a76a7d1c50072dd
4
+ data.tar.gz: 14dc1e863e2dc2df8176ecb412b867dd84e70bbe81bc37f3c500a9ec605789e5
5
5
  SHA512:
6
- metadata.gz: 02b6a7e2985a8b841db7e821ff5e3f0df97ee31124eb847a2c8e66859602b598c1e85058fa341ae3696e21ce0fcbe133670ae766b677165fe61d1e1bb291518f
7
- data.tar.gz: f22b2801acfcd33cf14d10b958349692623cefb74b45bdefa19acd8f750b2ba4d8ab42b9cab88dbd2615e1d7cfe4287f7500cc4b9f0740385bfd3e858ce6cc42
6
+ metadata.gz: 3d8deed2054c9642dfcf9e096c09d1a0811cde8a4fec57f1fe96eb70dbe69d50a960469137510b66722585401979d5235962b7f5952ae6dc33d423763c0d53d6
7
+ data.tar.gz: e8bc87c3b819c64c52ea33d8f14b6acd06b5a95258cadea393ab4fb02ce3c30df873d7623efa74f59a473cb74d2b0fa7db8f90ca52c5a0b839eee50af8c9dbe1
@@ -9,9 +9,9 @@ module Proposal
9
9
  attr_writer :expects
10
10
 
11
11
  validates_presence_of :email,
12
- :token,
13
- :proposable_type,
14
- :expires_at
12
+ :token,
13
+ :proposable_type,
14
+ :expires_at
15
15
 
16
16
  validates_with ::Proposal::ArgumentsValidator, if: -> {
17
17
  expects.present?
@@ -34,11 +34,11 @@ module Proposal
34
34
 
35
35
  def validate_uniqueness
36
36
  if self.class.pending.not_expired.where({
37
- email: self.email,
37
+ email: self.email,
38
38
  proposable_type: self.proposable_type,
39
39
  resource_type: self.resource_type,
40
40
  resource_id: self.resource_id
41
- }).exists?
41
+ }).exists?
42
42
  errors.add :email, "already has an outstanding proposal"
43
43
  end
44
44
  end
@@ -75,6 +75,7 @@ module Proposal
75
75
 
76
76
  def recipient!
77
77
  raise Proposal::RecordNotFound if recipient.nil?
78
+
78
79
  recipient
79
80
  end
80
81
 
@@ -130,6 +131,7 @@ module Proposal
130
131
  unless expires_proc.is_a? Proc
131
132
  raise ArgumentError, 'expires must be a proc'
132
133
  end
134
+
133
135
  self.expires_at = expires_proc.call
134
136
  end
135
137
 
@@ -157,6 +159,7 @@ module Proposal
157
159
  # the proposal action is not +:notify_remind+ or +:invite_remind+.
158
160
  def reminded!
159
161
  raise Proposal::RemindError, 'proposal action is not remind' unless remind?
162
+
160
163
  reminded
161
164
  end
162
165
 
@@ -177,6 +180,7 @@ module Proposal
177
180
  def accept!
178
181
  raise Proposal::ExpiredError, 'token has expired' if expired?
179
182
  raise Proposal::AcceptedError, 'token has been used' if accepted?
183
+
180
184
  touch :accepted_at
181
185
  true
182
186
  end
@@ -1,4 +1,4 @@
1
- class CreateProposalTokens < ActiveRecord::Migration
1
+ class CreateProposalTokens < ActiveRecord::Migration[5.0]
2
2
  def up
3
3
  create_table :proposal_tokens do |t|
4
4
  t.string :token, null: false
@@ -19,15 +19,15 @@ class CreateProposalTokens < ActiveRecord::Migration
19
19
 
20
20
  add_index :proposal_tokens, :token, unique: true
21
21
 
22
- execute <<-SQL
23
- CREATE UNIQUE INDEX proposal_idx ON proposal_tokens (
24
- email,
25
- proposable_type,
26
- resource_type,
27
- resource_id,
28
- expires_at,
29
- accepted_at
30
- )
22
+ execute <<~SQL
23
+ CREATE UNIQUE INDEX proposal_idx ON proposal_tokens (
24
+ email,
25
+ proposable_type,
26
+ resource_type,
27
+ resource_id,
28
+ expires_at,
29
+ accepted_at
30
+ )
31
31
  SQL
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module Proposal
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -8,6 +8,7 @@ Bundler.require(:default, Rails.env)
8
8
 
9
9
  module Dummy
10
10
  class Application < Rails::Application
11
+ config.active_record.sqlite3.represent_boolean_as_integer = true
11
12
  # Settings in config/environments/* take precedence over those specified here.
12
13
  # Application configuration should go into files in config/initializers
13
14
  # -- all .rb files in that directory are automatically loaded.
@@ -0,0 +1,44 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 2012_10_31_041439) do
14
+
15
+ create_table "projects", force: :cascade do |t|
16
+ t.datetime "created_at"
17
+ t.datetime "updated_at"
18
+ end
19
+
20
+ create_table "proposal_tokens", force: :cascade do |t|
21
+ t.string "token", null: false
22
+ t.string "email", null: false
23
+ t.string "proposable_type", null: false
24
+ t.string "resource_type"
25
+ t.integer "resource_id"
26
+ t.string "proposer_type"
27
+ t.integer "proposer_id"
28
+ t.text "arguments"
29
+ t.datetime "accepted_at"
30
+ t.datetime "reminded_at"
31
+ t.datetime "expires_at", null: false
32
+ t.datetime "updated_at", null: false
33
+ t.datetime "created_at", null: false
34
+ t.index ["email", "proposable_type", "resource_type", "resource_id", "expires_at", "accepted_at"], name: "proposal_idx", unique: true
35
+ t.index ["token"], name: "index_proposal_tokens_on_token", unique: true
36
+ end
37
+
38
+ create_table "users", force: :cascade do |t|
39
+ t.string "email"
40
+ t.datetime "created_at"
41
+ t.datetime "updated_at"
42
+ end
43
+
44
+ end
@@ -10677,3 +10677,3247 @@ ProposalTest: test_should_set_reminded_safe
10677
10677
  Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-03 06:35:03.611984"], ["reminded_at", "2019-07-03 06:35:03.611984"], ["id", 1]]
10678
10678
   (0.1ms) RELEASE SAVEPOINT active_record_1
10679
10679
   (0.8ms) rollback transaction
10680
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
10681
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
10682
+  (0.1ms) begin transaction
10683
+  (0.0ms) commit transaction
10684
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
10685
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
10686
+  (0.1ms) begin transaction
10687
+ ----------------------------------------------------------
10688
+ ProposalTest: test_should_not_return_no_action_if_accepted
10689
+ ----------------------------------------------------------
10690
+ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.746255') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10691
+  (0.1ms) SAVEPOINT active_record_1
10692
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.776315') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10693
+ Proposal::Token Create (1.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uvFzz1GNTDFQpFrxmysJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.765614"], ["updated_at", "2019-07-04 00:19:15.777242"], ["created_at", "2019-07-04 00:19:15.777242"]]
10694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10695
+  (0.0ms) SAVEPOINT active_record_1
10696
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.780574"], ["accepted_at", "2019-07-04 00:19:15.780574"], ["id", 1]]
10697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10698
+  (0.6ms) rollback transaction
10699
+  (0.1ms) begin transaction
10700
+ --------------------------------------------------
10701
+ ProposalTest: test_should_find_and_accept_proposal
10702
+ --------------------------------------------------
10703
+  (0.1ms) SAVEPOINT active_record_1
10704
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.787089"], ["updated_at", "2019-07-04 00:19:15.787089"]]
10705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10706
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.788725') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10707
+  (0.1ms) SAVEPOINT active_record_1
10708
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.803070') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10709
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rKQvsYLKuWH2qSRprwak"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.802173"], ["updated_at", "2019-07-04 00:19:15.803983"], ["created_at", "2019-07-04 00:19:15.803983"]]
10710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10711
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "rKQvsYLKuWH2qSRprwak"], ["LIMIT", 1]]
10712
+  (0.1ms) SAVEPOINT active_record_1
10713
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.808956"], ["accepted_at", "2019-07-04 00:19:15.808956"], ["id", 1]]
10714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10715
+  (0.8ms) rollback transaction
10716
+  (0.1ms) begin transaction
10717
+ -----------------------------------------------------------------
10718
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
10719
+ -----------------------------------------------------------------
10720
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.811781') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10721
+  (0.1ms) SAVEPOINT active_record_1
10722
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.813570') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10723
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2F7VmSX9ccSr6JJApcw6"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.812835"], ["updated_at", "2019-07-04 00:19:15.814268"], ["created_at", "2019-07-04 00:19:15.814268"]]
10724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10725
+  (0.1ms) SAVEPOINT active_record_1
10726
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.816330"], ["accepted_at", "2019-07-04 00:19:15.816330"], ["id", 1]]
10727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10728
+  (0.6ms) rollback transaction
10729
+  (0.1ms) begin transaction
10730
+ ----------------------------------------------------------------------
10731
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
10732
+ ----------------------------------------------------------------------
10733
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.818707') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10734
+  (0.1ms) SAVEPOINT active_record_1
10735
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.821258') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10736
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9Rbz49N4b5tqnyttvWxT"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.819847"], ["updated_at", "2019-07-04 00:19:15.822572"], ["created_at", "2019-07-04 00:19:15.822572"]]
10737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10738
+  (0.1ms) SAVEPOINT active_record_1
10739
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:15.824553"], ["accepted_at", "2019-07-04 00:19:15.824553"], ["id", 1]]
10740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10741
+  (0.6ms) rollback transaction
10742
+  (0.1ms) begin transaction
10743
+ ------------------------------------------------------------
10744
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
10745
+ ------------------------------------------------------------
10746
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.826922') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10747
+  (0.1ms) SAVEPOINT active_record_1
10748
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.828839') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10749
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "i7sNNzy7mAHLxZSLMtqQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:19:15.827998"], ["updated_at", "2019-07-04 00:19:15.829650"], ["created_at", "2019-07-04 00:19:15.829650"]]
10750
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10751
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "i7sNNzy7mAHLxZSLMtqQ"], ["LIMIT", 1]]
10752
+  (0.8ms) rollback transaction
10753
+  (0.1ms) begin transaction
10754
+ -------------------------------------------------------
10755
+ ProposalTest: test_should_return_all_proposals_for_type
10756
+ -------------------------------------------------------
10757
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.837774') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10758
+  (0.1ms) SAVEPOINT active_record_1
10759
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.840341') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10760
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iquxidFbyzU2esT8CNSA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.839295"], ["updated_at", "2019-07-04 00:19:15.841336"], ["created_at", "2019-07-04 00:19:15.841336"]]
10761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10762
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
10763
+  (0.8ms) rollback transaction
10764
+  (0.1ms) begin transaction
10765
+ --------------------------------------------------------
10766
+ ProposalTest: test_should_validate_arguments_with_symbol
10767
+ --------------------------------------------------------
10768
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.845665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10769
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.848643') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10770
+  (0.2ms) rollback transaction
10771
+  (0.2ms) begin transaction
10772
+ ----------------------------------------------------------------
10773
+ ProposalTest: test_should_return_proposals_for_proposer_instance
10774
+ ----------------------------------------------------------------
10775
+  (0.2ms) SAVEPOINT active_record_1
10776
+ User Create (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.852765"], ["updated_at", "2019-07-04 00:19:15.852765"]]
10777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10778
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.856068') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10779
+  (0.1ms) SAVEPOINT active_record_1
10780
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.859520') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10781
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yfkJF8pVrJAVne3XhjF8"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:19:15.857882"], ["updated_at", "2019-07-04 00:19:15.861002"], ["created_at", "2019-07-04 00:19:15.861002"]]
10782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10783
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]
10784
+  (0.8ms) rollback transaction
10785
+  (0.1ms) begin transaction
10786
+ -----------------------------------------------------------------------
10787
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
10788
+ -----------------------------------------------------------------------
10789
+  (0.2ms) SAVEPOINT active_record_1
10790
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.867720"], ["updated_at", "2019-07-04 00:19:15.867720"]]
10791
+  (0.4ms) RELEASE SAVEPOINT active_record_1
10792
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.871086') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10793
+  (0.2ms) SAVEPOINT active_record_1
10794
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.874456') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10795
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "UHZvSMhWA6Z2sd3pzfMF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.873131"], ["updated_at", "2019-07-04 00:19:15.875596"], ["created_at", "2019-07-04 00:19:15.875596"]]
10796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10797
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.877277') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10798
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10799
+  (0.8ms) rollback transaction
10800
+  (0.2ms) begin transaction
10801
+ -----------------------------------------------------
10802
+ ProposalTest: test_should_create_valid_proposal_token
10803
+ -----------------------------------------------------
10804
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.882947') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10805
+  (0.3ms) SAVEPOINT active_record_1
10806
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.887116') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10807
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "d8cgWcDrxuFcbnVpexKQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.885036"], ["updated_at", "2019-07-04 00:19:15.888747"], ["created_at", "2019-07-04 00:19:15.888747"]]
10808
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10809
+  (1.0ms) rollback transaction
10810
+  (0.1ms) begin transaction
10811
+ ------------------------------------------------------------------
10812
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
10813
+ ------------------------------------------------------------------
10814
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.893787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10815
+  (0.1ms) SAVEPOINT active_record_1
10816
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.895981') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10817
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "i4KaSTsM1xwEnypd5zuG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.895120"], ["updated_at", "2019-07-04 00:19:15.896838"], ["created_at", "2019-07-04 00:19:15.896838"]]
10818
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10819
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.899337') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10820
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10821
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10822
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10823
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10824
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10825
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10826
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10827
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10828
+  (0.6ms) rollback transaction
10829
+  (0.1ms) begin transaction
10830
+ -------------------------------------------------------
10831
+ ProposalTest: test_should_return_token_from_to_s_method
10832
+ -------------------------------------------------------
10833
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.910393') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10834
+  (0.1ms) SAVEPOINT active_record_1
10835
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.912674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10836
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "R7Ls84Ky8eAtoBkEA3up"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.911727"], ["updated_at", "2019-07-04 00:19:15.914013"], ["created_at", "2019-07-04 00:19:15.914013"]]
10837
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10838
+  (0.8ms) rollback transaction
10839
+  (0.2ms) begin transaction
10840
+ ----------------------------------------------------------------
10841
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
10842
+ ----------------------------------------------------------------
10843
+  (0.1ms) SAVEPOINT active_record_1
10844
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.922841') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10845
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6vu1myxUNkWzqW35jsZq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:19:15.922163"], ["updated_at", "2019-07-04 00:19:15.924152"], ["created_at", "2019-07-04 00:19:15.924152"]]
10846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10847
+  (0.1ms) SAVEPOINT active_record_1
10848
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.927097') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10849
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10850
+  (0.9ms) rollback transaction
10851
+  (0.5ms) begin transaction
10852
+ ----------------------------------------------
10853
+ ProposalTest: test_should_return_all_arguments
10854
+ ----------------------------------------------
10855
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.932408') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10856
+  (0.1ms) SAVEPOINT active_record_1
10857
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.934852') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10858
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "KwH9cJy2B4AW3gpuqCH1"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:19:15.933947"], ["updated_at", "2019-07-04 00:19:15.935968"], ["created_at", "2019-07-04 00:19:15.935968"]]
10859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10860
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "KwH9cJy2B4AW3gpuqCH1"], ["LIMIT", 1]]
10861
+  (0.9ms) rollback transaction
10862
+  (0.1ms) begin transaction
10863
+ --------------------------------------------------------
10864
+ ProposalTest: test_should_validate_arguments_with_a_proc
10865
+ --------------------------------------------------------
10866
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.941892') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10867
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.943852') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10868
+  (0.1ms) rollback transaction
10869
+  (0.1ms) begin transaction
10870
+ ---------------------------------------------------------
10871
+ ProposalTest: test_should_validate_arguments_with_symbols
10872
+ ---------------------------------------------------------
10873
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.945662') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10874
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.949293') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10875
+  (0.1ms) rollback transaction
10876
+  (0.1ms) begin transaction
10877
+ ------------------------
10878
+ ProposalTest: test_truth
10879
+ ------------------------
10880
+  (0.1ms) rollback transaction
10881
+  (0.1ms) begin transaction
10882
+ ----------------------------------------------------------------
10883
+ ProposalTest: test_should_return_proposals_for_resource_instance
10884
+ ----------------------------------------------------------------
10885
+  (0.1ms) SAVEPOINT active_record_1
10886
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.953424"], ["updated_at", "2019-07-04 00:19:15.953424"]]
10887
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10888
+  (0.1ms) SAVEPOINT active_record_1
10889
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:15.961728"], ["updated_at", "2019-07-04 00:19:15.961728"]]
10890
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10891
+ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.963712') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
10892
+  (0.2ms) SAVEPOINT active_record_1
10893
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.968266') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
10894
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "oPuvzi2xqQyL8xEzptpd"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:15.966671"], ["updated_at", "2019-07-04 00:19:15.969572"], ["created_at", "2019-07-04 00:19:15.969572"]]
10895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10896
+ 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]]
10897
+  (0.8ms) rollback transaction
10898
+  (0.2ms) begin transaction
10899
+ --------------------------------------------------
10900
+ ProposalTest: test_should_respond_to_the_recipient
10901
+ --------------------------------------------------
10902
+  (0.1ms) SAVEPOINT active_record_1
10903
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:15.975305"], ["updated_at", "2019-07-04 00:19:15.975305"]]
10904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10905
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.976869') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10906
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10907
+  (1.0ms) rollback transaction
10908
+  (0.2ms) begin transaction
10909
+ ---------------------------------------------
10910
+ ProposalTest: test_should_return_the_resource
10911
+ ---------------------------------------------
10912
+  (0.1ms) SAVEPOINT active_record_1
10913
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:15.983328"], ["updated_at", "2019-07-04 00:19:15.983328"]]
10914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10915
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.985260') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
10916
+  (0.8ms) rollback transaction
10917
+  (0.3ms) begin transaction
10918
+ ------------------------------------------------------
10919
+ ProposalTest: test_should_not_return_proposal_instance
10920
+ ------------------------------------------------------
10921
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.990619') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10922
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10923
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10924
+  (0.1ms) rollback transaction
10925
+  (0.1ms) begin transaction
10926
+ ----------------------------------------------------------------
10927
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
10928
+ ----------------------------------------------------------------
10929
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:15.995348') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10930
+  (0.2ms) SAVEPOINT active_record_1
10931
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.000158') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10932
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mR9s1uAs7RDXWqyuip2r"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:15.998222"], ["updated_at", "2019-07-04 00:19:16.001579"], ["created_at", "2019-07-04 00:19:16.001579"]]
10933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10934
+  (1.0ms) rollback transaction
10935
+  (0.1ms) begin transaction
10936
+ -------------------------------------------
10937
+ ProposalTest: test_should_set_reminded_safe
10938
+ -------------------------------------------
10939
+  (0.1ms) SAVEPOINT active_record_1
10940
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.007390"], ["updated_at", "2019-07-04 00:19:16.007390"]]
10941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10942
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.008896') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10943
+  (0.1ms) SAVEPOINT active_record_1
10944
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.010973') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10945
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fmCQrGuwa2zDSFXMfzUy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:16.010057"], ["updated_at", "2019-07-04 00:19:16.011921"], ["created_at", "2019-07-04 00:19:16.011921"]]
10946
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10947
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.014721') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10948
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10949
+  (0.1ms) SAVEPOINT active_record_1
10950
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:16.018425"], ["reminded_at", "2019-07-04 00:19:16.018425"], ["id", 1]]
10951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10952
+  (0.5ms) rollback transaction
10953
+  (0.2ms) begin transaction
10954
+ ---------------------------------------------------------------------
10955
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
10956
+ ---------------------------------------------------------------------
10957
+  (0.1ms) SAVEPOINT active_record_1
10958
+ Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.021576"], ["updated_at", "2019-07-04 00:19:16.021576"]]
10959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10960
+  (0.1ms) SAVEPOINT active_record_1
10961
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.024132"], ["updated_at", "2019-07-04 00:19:16.024132"]]
10962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10963
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.025293') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
10964
+  (0.1ms) SAVEPOINT active_record_1
10965
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.027413') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
10966
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Vma8ZVz54fBdAjMgpsje"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:16.026506"], ["updated_at", "2019-07-04 00:19:16.028506"], ["created_at", "2019-07-04 00:19:16.028506"]]
10967
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10968
+  (0.2ms) SAVEPOINT active_record_1
10969
+ Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:16.031946"], ["accepted_at", "2019-07-04 00:19:16.031946"], ["id", 1]]
10970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10971
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.034069') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
10972
+  (0.1ms) SAVEPOINT active_record_1
10973
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.036005') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
10974
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "j3ALoA3s2mpwdjziy73e"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:16.035184"], ["updated_at", "2019-07-04 00:19:16.036979"], ["created_at", "2019-07-04 00:19:16.036979"]]
10975
+  (0.2ms) RELEASE SAVEPOINT active_record_1
10976
+  (0.7ms) rollback transaction
10977
+  (0.1ms) begin transaction
10978
+ -------------------------------------------
10979
+ ProposalTest: test_should_set_reminded_bang
10980
+ -------------------------------------------
10981
+  (0.1ms) SAVEPOINT active_record_1
10982
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.041441"], ["updated_at", "2019-07-04 00:19:16.041441"]]
10983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10984
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.042934') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10985
+  (0.1ms) SAVEPOINT active_record_1
10986
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.045106') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10987
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ugeLjApoxZ2aA5c9xBxn"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:19:16.044163"], ["updated_at", "2019-07-04 00:19:16.046064"], ["created_at", "2019-07-04 00:19:16.046064"]]
10988
+  (0.3ms) RELEASE SAVEPOINT active_record_1
10989
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.049163') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
10990
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
10991
+  (0.1ms) SAVEPOINT active_record_1
10992
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:19:16.061510"], ["reminded_at", "2019-07-04 00:19:16.061510"], ["id", 1]]
10993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10994
+  (1.0ms) rollback transaction
10995
+  (0.3ms) begin transaction
10996
+ -----------------------------------------------------------
10997
+ ProposalTest: test_should_not_return_proposal_action_invite
10998
+ -----------------------------------------------------------
10999
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.065469') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11000
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.067622') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11001
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11002
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.069579') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11003
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11004
+  (0.1ms) rollback transaction
11005
+  (0.1ms) begin transaction
11006
+ -----------------------------------------------------------------
11007
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
11008
+ -----------------------------------------------------------------
11009
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.072443') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11010
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.075302') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11011
+  (0.1ms) rollback transaction
11012
+  (0.1ms) begin transaction
11013
+ -------------------------------------------------
11014
+ ProposalTest: test_should_respond_to_the_resource
11015
+ -------------------------------------------------
11016
+  (0.1ms) SAVEPOINT active_record_1
11017
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.078081"], ["updated_at", "2019-07-04 00:19:16.078081"]]
11018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11019
+  (0.1ms) SAVEPOINT active_record_1
11020
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.080113"], ["updated_at", "2019-07-04 00:19:16.080113"]]
11021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11022
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.081419') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11023
+  (0.8ms) rollback transaction
11024
+  (0.1ms) begin transaction
11025
+ -----------------------------------------------------------
11026
+ ProposalTest: test_should_not_return_proposal_action_notify
11027
+ -----------------------------------------------------------
11028
+  (0.1ms) SAVEPOINT active_record_1
11029
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.084981"], ["updated_at", "2019-07-04 00:19:16.084981"]]
11030
+  (0.4ms) RELEASE SAVEPOINT active_record_1
11031
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.087463') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11032
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.090329') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11033
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11034
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.093221') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11035
+  (0.6ms) rollback transaction
11036
+  (0.1ms) begin transaction
11037
+ --------------------------------------------------
11038
+ ProposalTest: test_should_return_proposal_instance
11039
+ --------------------------------------------------
11040
+  (0.1ms) SAVEPOINT active_record_1
11041
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:19:16.096274"], ["updated_at", "2019-07-04 00:19:16.096274"]]
11042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11043
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.098098') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11044
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11045
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.101239') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11046
+  (0.6ms) rollback transaction
11047
+  (0.1ms) begin transaction
11048
+ -----------------------------------------------------------
11049
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
11050
+ -----------------------------------------------------------
11051
+ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.103656') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11052
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.107287') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11053
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11054
+  (0.1ms) rollback transaction
11055
+  (0.2ms) begin transaction
11056
+ --------------------------------------------
11057
+ ProposalTest: test_user_should_have_proposal
11058
+ --------------------------------------------
11059
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.111001') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11060
+  (0.1ms) rollback transaction
11061
+  (0.1ms) begin transaction
11062
+ -------------------------------------------
11063
+ ProposalTest: test_should_accept_a_resource
11064
+ -------------------------------------------
11065
+  (0.2ms) SAVEPOINT active_record_1
11066
+ Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.114716"], ["updated_at", "2019-07-04 00:19:16.114716"]]
11067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11068
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.117242') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11069
+  (0.1ms) SAVEPOINT active_record_1
11070
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.119903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11071
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ArxrjQx8AGRYvXKSeHsL"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:19:16.118779"], ["updated_at", "2019-07-04 00:19:16.121300"], ["created_at", "2019-07-04 00:19:16.121300"]]
11072
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11073
+  (0.2ms) SAVEPOINT active_record_1
11074
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:19:16.124900"], ["updated_at", "2019-07-04 00:19:16.124900"]]
11075
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11076
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.126734') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11077
+  (0.1ms) SAVEPOINT active_record_1
11078
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.129243') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11079
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "BU4Wm4Ab76ByxgZoFVyy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:19:16.128208"], ["updated_at", "2019-07-04 00:19:16.130307"], ["created_at", "2019-07-04 00:19:16.130307"]]
11080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11081
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:19:16.131752') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11082
+  (0.7ms) rollback transaction
11083
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11084
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11085
+  (0.1ms) begin transaction
11086
+  (0.1ms) commit transaction
11087
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11088
+  (5.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11089
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11090
+  (0.1ms) begin transaction
11091
+  (0.1ms) commit transaction
11092
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11093
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11094
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11095
+  (0.1ms) begin transaction
11096
+  (0.0ms) commit transaction
11097
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11098
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11099
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11100
+  (0.1ms) begin transaction
11101
+  (0.0ms) commit transaction
11102
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11103
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11104
+  (0.1ms) begin transaction
11105
+ ----------------------------------------------------------------------
11106
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
11107
+ ----------------------------------------------------------------------
11108
+ Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.881218') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11109
+  (0.1ms) SAVEPOINT active_record_1
11110
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.908971') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11111
+ Proposal::Token Create (1.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "JUpnskYFvwqHfaFsYhfS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.899941"], ["updated_at", "2019-07-04 00:25:17.909893"], ["created_at", "2019-07-04 00:25:17.909893"]]
11112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11113
+  (0.1ms) SAVEPOINT active_record_1
11114
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:17.913011"], ["accepted_at", "2019-07-04 00:25:17.913011"], ["id", 1]]
11115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11116
+  (0.5ms) rollback transaction
11117
+  (0.0ms) begin transaction
11118
+ --------------------------------------------------------
11119
+ ProposalTest: test_should_validate_arguments_with_symbol
11120
+ --------------------------------------------------------
11121
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.915294') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11122
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.916787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11123
+  (0.0ms) rollback transaction
11124
+  (0.0ms) begin transaction
11125
+ -----------------------------------------------------------------
11126
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
11127
+ -----------------------------------------------------------------
11128
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.918034') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11129
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.919730') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11130
+  (0.0ms) rollback transaction
11131
+  (0.1ms) begin transaction
11132
+ ------------------------------------------------------
11133
+ ProposalTest: test_should_not_return_proposal_instance
11134
+ ------------------------------------------------------
11135
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.921412') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11136
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11137
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11138
+  (0.0ms) rollback transaction
11139
+  (0.0ms) begin transaction
11140
+ -----------------------------------------------------------------
11141
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
11142
+ -----------------------------------------------------------------
11143
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.927129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11144
+  (0.1ms) SAVEPOINT active_record_1
11145
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.929419') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11146
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "shsSG6MXU7L3QWszhJCe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.928215"], ["updated_at", "2019-07-04 00:25:17.930590"], ["created_at", "2019-07-04 00:25:17.930590"]]
11147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11148
+  (0.1ms) SAVEPOINT active_record_1
11149
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:17.932874"], ["accepted_at", "2019-07-04 00:25:17.932874"], ["id", 1]]
11150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11151
+  (0.7ms) rollback transaction
11152
+  (0.1ms) begin transaction
11153
+ -------------------------------------------
11154
+ ProposalTest: test_should_set_reminded_bang
11155
+ -------------------------------------------
11156
+  (0.1ms) SAVEPOINT active_record_1
11157
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:17.940818"], ["updated_at", "2019-07-04 00:25:17.940818"]]
11158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11159
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.942966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11160
+  (0.1ms) SAVEPOINT active_record_1
11161
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.945071') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11162
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "k1dAdJpdC81SrkqZr3vC"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.944023"], ["updated_at", "2019-07-04 00:25:17.946554"], ["created_at", "2019-07-04 00:25:17.946554"]]
11163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11164
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.948504') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11165
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11166
+  (0.1ms) SAVEPOINT active_record_1
11167
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:17.953889"], ["reminded_at", "2019-07-04 00:25:17.953889"], ["id", 1]]
11168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11169
+  (0.6ms) rollback transaction
11170
+  (0.1ms) begin transaction
11171
+ -------------------------------------------
11172
+ ProposalTest: test_should_accept_a_resource
11173
+ -------------------------------------------
11174
+  (0.1ms) SAVEPOINT active_record_1
11175
+ Project Create (0.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:17.962228"], ["updated_at", "2019-07-04 00:25:17.962228"]]
11176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11177
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.964025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11178
+  (0.0ms) SAVEPOINT active_record_1
11179
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.965720') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11180
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KPrypw18CmESGE1cnn8k"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:17.964984"], ["updated_at", "2019-07-04 00:25:17.966418"], ["created_at", "2019-07-04 00:25:17.966418"]]
11181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11182
+  (0.0ms) SAVEPOINT active_record_1
11183
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:17.968070"], ["updated_at", "2019-07-04 00:25:17.968070"]]
11184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11185
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.968816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11186
+  (0.0ms) SAVEPOINT active_record_1
11187
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.970396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11188
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "QqDsoqtkV3XpsjDq5AZm"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:25:17.969635"], ["updated_at", "2019-07-04 00:25:17.971506"], ["created_at", "2019-07-04 00:25:17.971506"]]
11189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11190
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.972869') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11191
+  (0.5ms) rollback transaction
11192
+  (0.1ms) begin transaction
11193
+ -------------------------------------------------------
11194
+ ProposalTest: test_should_return_token_from_to_s_method
11195
+ -------------------------------------------------------
11196
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.975203') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11197
+  (0.1ms) SAVEPOINT active_record_1
11198
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.978173') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11199
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uxNGTWx3shW3LSNjdZrv"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:17.976827"], ["updated_at", "2019-07-04 00:25:17.979321"], ["created_at", "2019-07-04 00:25:17.979321"]]
11200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11201
+  (0.5ms) rollback transaction
11202
+  (0.1ms) begin transaction
11203
+ ----------------------------------------------------------------
11204
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
11205
+ ----------------------------------------------------------------
11206
+  (0.1ms) SAVEPOINT active_record_1
11207
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:17.997741') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11208
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fQpkxfyMZhrxpMWCBsiz"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:25:17.997297"], ["updated_at", "2019-07-04 00:25:17.998755"], ["created_at", "2019-07-04 00:25:17.998755"]]
11209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11210
+  (0.0ms) SAVEPOINT active_record_1
11211
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.001271') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11212
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11213
+  (0.7ms) rollback transaction
11214
+  (0.1ms) begin transaction
11215
+ ----------------------------------------------------------------
11216
+ ProposalTest: test_should_return_proposals_for_resource_instance
11217
+ ----------------------------------------------------------------
11218
+  (0.1ms) SAVEPOINT active_record_1
11219
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.004668"], ["updated_at", "2019-07-04 00:25:18.004668"]]
11220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11221
+  (0.0ms) SAVEPOINT active_record_1
11222
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.006240"], ["updated_at", "2019-07-04 00:25:18.006240"]]
11223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11224
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.007178') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11225
+  (0.1ms) SAVEPOINT active_record_1
11226
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.009065') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11227
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "gNZpzQkhXpo7tyyNuLrF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:18.008145"], ["updated_at", "2019-07-04 00:25:18.010064"], ["created_at", "2019-07-04 00:25:18.010064"]]
11228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11229
+ 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]]
11230
+  (0.6ms) rollback transaction
11231
+  (0.0ms) begin transaction
11232
+ ---------------------------------------------
11233
+ ProposalTest: test_should_return_the_resource
11234
+ ---------------------------------------------
11235
+  (0.1ms) SAVEPOINT active_record_1
11236
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.013691"], ["updated_at", "2019-07-04 00:25:18.013691"]]
11237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11238
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.014840') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11239
+  (0.4ms) rollback transaction
11240
+  (0.0ms) begin transaction
11241
+ ------------------------------------------------------------
11242
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
11243
+ ------------------------------------------------------------
11244
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.017190') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11245
+  (0.1ms) SAVEPOINT active_record_1
11246
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.019080') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11247
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "jSHTixjVpLvHGfQQLrNJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:25:18.018336"], ["updated_at", "2019-07-04 00:25:18.019753"], ["created_at", "2019-07-04 00:25:18.019753"]]
11248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11249
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "jSHTixjVpLvHGfQQLrNJ"], ["LIMIT", 1]]
11250
+  (0.7ms) rollback transaction
11251
+  (0.1ms) begin transaction
11252
+ -----------------------------------------------------------
11253
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
11254
+ -----------------------------------------------------------
11255
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.025254') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11256
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.027548') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11257
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11258
+  (0.1ms) rollback transaction
11259
+  (0.0ms) begin transaction
11260
+ ---------------------------------------------------------------------
11261
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
11262
+ ---------------------------------------------------------------------
11263
+  (0.1ms) SAVEPOINT active_record_1
11264
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.031094"], ["updated_at", "2019-07-04 00:25:18.031094"]]
11265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11266
+  (0.0ms) SAVEPOINT active_record_1
11267
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.032634"], ["updated_at", "2019-07-04 00:25:18.032634"]]
11268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11269
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.033992') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11270
+  (0.1ms) SAVEPOINT active_record_1
11271
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.036602') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11272
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ey4p2FtSc968pYqzqVWv"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:18.035202"], ["updated_at", "2019-07-04 00:25:18.038039"], ["created_at", "2019-07-04 00:25:18.038039"]]
11273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11274
+  (0.0ms) SAVEPOINT active_record_1
11275
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.039916"], ["accepted_at", "2019-07-04 00:25:18.039916"], ["id", 1]]
11276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11277
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.040889') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11278
+  (0.1ms) SAVEPOINT active_record_1
11279
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.043204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11280
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KMpsLmkybKqsBy6hD5yF"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:25:18.042172"], ["updated_at", "2019-07-04 00:25:18.044705"], ["created_at", "2019-07-04 00:25:18.044705"]]
11281
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11282
+  (0.8ms) rollback transaction
11283
+  (0.1ms) begin transaction
11284
+ ------------------------
11285
+ ProposalTest: test_truth
11286
+ ------------------------
11287
+  (0.0ms) rollback transaction
11288
+  (0.0ms) begin transaction
11289
+ -------------------------------------------------------
11290
+ ProposalTest: test_should_return_all_proposals_for_type
11291
+ -------------------------------------------------------
11292
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.049129') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11293
+  (0.1ms) SAVEPOINT active_record_1
11294
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.051576') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11295
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "4eMsXz2zgzxeF8RhzzUx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.050644"], ["updated_at", "2019-07-04 00:25:18.052527"], ["created_at", "2019-07-04 00:25:18.052527"]]
11296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11297
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
11298
+  (0.8ms) rollback transaction
11299
+  (0.1ms) begin transaction
11300
+ --------------------------------------------------
11301
+ ProposalTest: test_should_find_and_accept_proposal
11302
+ --------------------------------------------------
11303
+  (0.1ms) SAVEPOINT active_record_1
11304
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.057727"], ["updated_at", "2019-07-04 00:25:18.057727"]]
11305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11306
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.059752') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11307
+  (0.1ms) SAVEPOINT active_record_1
11308
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.063409') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11309
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Kt3nVwKyGgANYQ5vPppS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.061740"], ["updated_at", "2019-07-04 00:25:18.064682"], ["created_at", "2019-07-04 00:25:18.064682"]]
11310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11311
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "Kt3nVwKyGgANYQ5vPppS"], ["LIMIT", 1]]
11312
+  (0.1ms) SAVEPOINT active_record_1
11313
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.068285"], ["accepted_at", "2019-07-04 00:25:18.068285"], ["id", 1]]
11314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11315
+  (0.7ms) rollback transaction
11316
+  (0.1ms) begin transaction
11317
+ ----------------------------------------------------------------
11318
+ ProposalTest: test_should_return_proposals_for_proposer_instance
11319
+ ----------------------------------------------------------------
11320
+  (0.1ms) SAVEPOINT active_record_1
11321
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.072606"], ["updated_at", "2019-07-04 00:25:18.072606"]]
11322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11323
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.074660') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11324
+  (0.1ms) SAVEPOINT active_record_1
11325
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.077327') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11326
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "DxiNs5q3Nvwchq12zs8d"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:25:18.076150"], ["updated_at", "2019-07-04 00:25:18.078767"], ["created_at", "2019-07-04 00:25:18.078767"]]
11327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11328
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]
11329
+  (0.6ms) rollback transaction
11330
+  (0.1ms) begin transaction
11331
+ --------------------------------------------------
11332
+ ProposalTest: test_should_return_proposal_instance
11333
+ --------------------------------------------------
11334
+  (0.1ms) SAVEPOINT active_record_1
11335
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.084103"], ["updated_at", "2019-07-04 00:25:18.084103"]]
11336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11337
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.085690') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11338
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11339
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.088889') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11340
+  (0.7ms) rollback transaction
11341
+  (0.1ms) begin transaction
11342
+ ----------------------------------------------------------------
11343
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
11344
+ ----------------------------------------------------------------
11345
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.092290') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11346
+  (0.3ms) SAVEPOINT active_record_1
11347
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.096783') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11348
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TFAHXUwVVmapg9RPs2ah"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.094012"], ["updated_at", "2019-07-04 00:25:18.098471"], ["created_at", "2019-07-04 00:25:18.098471"]]
11349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11350
+  (0.7ms) rollback transaction
11351
+  (0.1ms) begin transaction
11352
+ ------------------------------------------------------------------
11353
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
11354
+ ------------------------------------------------------------------
11355
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.102958') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11356
+  (0.1ms) SAVEPOINT active_record_1
11357
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.106312') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11358
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iydW98zRbqdVizN4YZ1s"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.104903"], ["updated_at", "2019-07-04 00:25:18.107764"], ["created_at", "2019-07-04 00:25:18.107764"]]
11359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11360
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.109971') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11361
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11362
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11363
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11364
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11365
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11366
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11367
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11368
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11369
+  (0.8ms) rollback transaction
11370
+  (0.1ms) begin transaction
11371
+ -----------------------------------------------------
11372
+ ProposalTest: test_should_create_valid_proposal_token
11373
+ -----------------------------------------------------
11374
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.119604') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11375
+  (0.1ms) SAVEPOINT active_record_1
11376
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.122708') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11377
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ALqVjmzuQdHnyjiGFmT3"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.121549"], ["updated_at", "2019-07-04 00:25:18.123696"], ["created_at", "2019-07-04 00:25:18.123696"]]
11378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11379
+  (0.9ms) rollback transaction
11380
+  (0.2ms) begin transaction
11381
+ --------------------------------------------
11382
+ ProposalTest: test_user_should_have_proposal
11383
+ --------------------------------------------
11384
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.128303') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11385
+  (0.1ms) rollback transaction
11386
+  (0.0ms) begin transaction
11387
+ -------------------------------------------------
11388
+ ProposalTest: test_should_respond_to_the_resource
11389
+ -------------------------------------------------
11390
+  (0.1ms) SAVEPOINT active_record_1
11391
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.131396"], ["updated_at", "2019-07-04 00:25:18.131396"]]
11392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11393
+  (0.0ms) SAVEPOINT active_record_1
11394
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:25:18.132840"], ["updated_at", "2019-07-04 00:25:18.132840"]]
11395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11396
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.134145') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11397
+  (1.1ms) rollback transaction
11398
+  (0.1ms) begin transaction
11399
+ ---------------------------------------------------------
11400
+ ProposalTest: test_should_validate_arguments_with_symbols
11401
+ ---------------------------------------------------------
11402
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.138231') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11403
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.140516') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11404
+  (0.1ms) rollback transaction
11405
+  (0.1ms) begin transaction
11406
+ --------------------------------------------------
11407
+ ProposalTest: test_should_respond_to_the_recipient
11408
+ --------------------------------------------------
11409
+  (0.1ms) SAVEPOINT active_record_1
11410
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.143106"], ["updated_at", "2019-07-04 00:25:18.143106"]]
11411
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11412
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.145525') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11413
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11414
+  (0.6ms) rollback transaction
11415
+  (0.0ms) begin transaction
11416
+ ----------------------------------------------
11417
+ ProposalTest: test_should_return_all_arguments
11418
+ ----------------------------------------------
11419
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.149705') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11420
+  (0.1ms) SAVEPOINT active_record_1
11421
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.152338') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11422
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "pgS97Uizgd35q2Suq446"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:25:18.151147"], ["updated_at", "2019-07-04 00:25:18.153661"], ["created_at", "2019-07-04 00:25:18.153661"]]
11423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11424
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "pgS97Uizgd35q2Suq446"], ["LIMIT", 1]]
11425
+  (0.7ms) rollback transaction
11426
+  (0.1ms) begin transaction
11427
+ -----------------------------------------------------------
11428
+ ProposalTest: test_should_not_return_proposal_action_notify
11429
+ -----------------------------------------------------------
11430
+  (0.1ms) SAVEPOINT active_record_1
11431
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.161029"], ["updated_at", "2019-07-04 00:25:18.161029"]]
11432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11433
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.163739') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11434
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.165712') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11435
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11436
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.168506') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11437
+  (0.8ms) rollback transaction
11438
+  (0.3ms) begin transaction
11439
+ -----------------------------------------------------------
11440
+ ProposalTest: test_should_not_return_proposal_action_invite
11441
+ -----------------------------------------------------------
11442
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.172393') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11443
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.174519') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11444
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11445
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.176690') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11446
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11447
+  (0.1ms) rollback transaction
11448
+  (0.1ms) begin transaction
11449
+ -----------------------------------------------------------------------
11450
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
11451
+ -----------------------------------------------------------------------
11452
+  (0.1ms) SAVEPOINT active_record_1
11453
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.181150"], ["updated_at", "2019-07-04 00:25:18.181150"]]
11454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11455
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.183400') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11456
+  (0.1ms) SAVEPOINT active_record_1
11457
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.186339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11458
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fmr8Aq956QSRqhtZU2Gq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.185065"], ["updated_at", "2019-07-04 00:25:18.187834"], ["created_at", "2019-07-04 00:25:18.187834"]]
11459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11460
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.190333') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11461
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11462
+  (0.7ms) rollback transaction
11463
+  (0.2ms) begin transaction
11464
+ ----------------------------------------------------------
11465
+ ProposalTest: test_should_not_return_no_action_if_accepted
11466
+ ----------------------------------------------------------
11467
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.197100') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11468
+  (0.1ms) SAVEPOINT active_record_1
11469
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.200701') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11470
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "z2TGsTj9XCXxCVKRjn5t"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.199110"], ["updated_at", "2019-07-04 00:25:18.202268"], ["created_at", "2019-07-04 00:25:18.202268"]]
11471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11472
+  (0.1ms) SAVEPOINT active_record_1
11473
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.204498"], ["accepted_at", "2019-07-04 00:25:18.204498"], ["id", 1]]
11474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11475
+  (0.8ms) rollback transaction
11476
+  (0.1ms) begin transaction
11477
+ -------------------------------------------
11478
+ ProposalTest: test_should_set_reminded_safe
11479
+ -------------------------------------------
11480
+  (0.1ms) SAVEPOINT active_record_1
11481
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:25:18.208644"], ["updated_at", "2019-07-04 00:25:18.208644"]]
11482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11483
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.210336') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11484
+  (0.1ms) SAVEPOINT active_record_1
11485
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.213609') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11486
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Rq3HRWprR8EdAasE7A55"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:25:18.212270"], ["updated_at", "2019-07-04 00:25:18.214641"], ["created_at", "2019-07-04 00:25:18.214641"]]
11487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11488
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.215963') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11489
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11490
+  (0.1ms) SAVEPOINT active_record_1
11491
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:25:18.219352"], ["reminded_at", "2019-07-04 00:25:18.219352"], ["id", 1]]
11492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11493
+  (0.9ms) rollback transaction
11494
+  (0.2ms) begin transaction
11495
+ --------------------------------------------------------
11496
+ ProposalTest: test_should_validate_arguments_with_a_proc
11497
+ --------------------------------------------------------
11498
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.223128') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11499
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:25:18.225325') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11500
+  (0.1ms) rollback transaction
11501
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11502
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11503
+  (0.1ms) begin transaction
11504
+  (0.1ms) commit transaction
11505
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11506
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11507
+  (0.1ms) begin transaction
11508
+ -------------------------------------------
11509
+ ProposalTest: test_should_accept_a_resource
11510
+ -------------------------------------------
11511
+  (0.4ms) SAVEPOINT active_record_1
11512
+ Project Create (2.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.259516"], ["updated_at", "2019-07-04 00:27:45.259516"]]
11513
+  (0.3ms) RELEASE SAVEPOINT active_record_1
11514
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.296898') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11515
+  (0.2ms) SAVEPOINT active_record_1
11516
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.374786') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11517
+ Proposal::Token Create (1.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "W9xsqCkRuqhAAeAwtQZx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.345759"], ["updated_at", "2019-07-04 00:27:45.376399"], ["created_at", "2019-07-04 00:27:45.376399"]]
11518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11519
+  (0.2ms) SAVEPOINT active_record_1
11520
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.380806"], ["updated_at", "2019-07-04 00:27:45.380806"]]
11521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11522
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.382354') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11523
+  (0.1ms) SAVEPOINT active_record_1
11524
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.386156') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11525
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "uypfXb3grpkmA1xkeLUT"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:27:45.383876"], ["updated_at", "2019-07-04 00:27:45.387495"], ["created_at", "2019-07-04 00:27:45.387495"]]
11526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11527
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.389070') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
11528
+  (0.6ms) rollback transaction
11529
+  (0.1ms) begin transaction
11530
+ -----------------------------------------------------------------
11531
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
11532
+ -----------------------------------------------------------------
11533
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.394053') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11534
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.399358') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11535
+  (0.1ms) rollback transaction
11536
+  (0.1ms) begin transaction
11537
+ ----------------------------------------------
11538
+ ProposalTest: test_should_return_all_arguments
11539
+ ----------------------------------------------
11540
+ Proposal::Token Load (1.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.402696') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11541
+  (0.5ms) SAVEPOINT active_record_1
11542
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.407888') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11543
+ Proposal::Token Create (1.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "EwvzrcL8Psbq1BjavnZ3"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:27:45.406157"], ["updated_at", "2019-07-04 00:27:45.409095"], ["created_at", "2019-07-04 00:27:45.409095"]]
11544
+  (0.4ms) RELEASE SAVEPOINT active_record_1
11545
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "EwvzrcL8Psbq1BjavnZ3"], ["LIMIT", 1]]
11546
+  (1.3ms) rollback transaction
11547
+  (0.1ms) begin transaction
11548
+ -----------------------------------------------------------
11549
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
11550
+ -----------------------------------------------------------
11551
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.425573') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11552
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.428538') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11553
+ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11554
+  (0.2ms) rollback transaction
11555
+  (0.1ms) begin transaction
11556
+ -----------------------------------------------------------
11557
+ ProposalTest: test_should_not_return_proposal_action_notify
11558
+ -----------------------------------------------------------
11559
+  (0.1ms) SAVEPOINT active_record_1
11560
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.447307"], ["updated_at", "2019-07-04 00:27:45.447307"]]
11561
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11562
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.449651') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11563
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.451927') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11564
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11565
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.455728') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11566
+  (0.7ms) rollback transaction
11567
+  (0.1ms) begin transaction
11568
+ ----------------------------------------------------------------
11569
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
11570
+ ----------------------------------------------------------------
11571
+  (0.1ms) SAVEPOINT active_record_1
11572
+ Proposal::Token Exists (0.9ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.465635') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11573
+ Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6wW6BQHts7JpETxgteRP"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:27:45.465171"], ["updated_at", "2019-07-04 00:27:45.508699"], ["created_at", "2019-07-04 00:27:45.508699"]]
11574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11575
+  (0.1ms) SAVEPOINT active_record_1
11576
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.512496') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11577
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11578
+  (0.6ms) rollback transaction
11579
+  (0.1ms) begin transaction
11580
+ ------------------------
11581
+ ProposalTest: test_truth
11582
+ ------------------------
11583
+  (0.1ms) rollback transaction
11584
+  (0.1ms) begin transaction
11585
+ -----------------------------------------------------------
11586
+ ProposalTest: test_should_not_return_proposal_action_invite
11587
+ -----------------------------------------------------------
11588
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.516824') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11589
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.519377') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11590
+ User Load (18.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11591
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.553876') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11592
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11593
+  (0.1ms) rollback transaction
11594
+  (0.1ms) begin transaction
11595
+ --------------------------------------------
11596
+ ProposalTest: test_user_should_have_proposal
11597
+ --------------------------------------------
11598
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.559404') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11599
+  (0.1ms) rollback transaction
11600
+  (0.1ms) begin transaction
11601
+ ----------------------------------------------------------------
11602
+ ProposalTest: test_should_return_proposals_for_resource_instance
11603
+ ----------------------------------------------------------------
11604
+  (0.1ms) SAVEPOINT active_record_1
11605
+ User Create (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.568549"], ["updated_at", "2019-07-04 00:27:45.568549"]]
11606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11607
+  (0.1ms) SAVEPOINT active_record_1
11608
+ Project Create (2.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.572527"], ["updated_at", "2019-07-04 00:27:45.572527"]]
11609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11610
+ Proposal::Token Load (10.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.576677') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11611
+  (0.1ms) SAVEPOINT active_record_1
11612
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.591238') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11613
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Rp7pTXPMqxsH3MeXgaYe"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.589381"], ["updated_at", "2019-07-04 00:27:45.592868"], ["created_at", "2019-07-04 00:27:45.592868"]]
11614
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11615
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]
11616
+  (0.7ms) rollback transaction
11617
+  (0.1ms) begin transaction
11618
+ ----------------------------------------------------------
11619
+ ProposalTest: test_should_not_return_no_action_if_accepted
11620
+ ----------------------------------------------------------
11621
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.600496') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11622
+  (0.1ms) SAVEPOINT active_record_1
11623
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.603029') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11624
+ Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "fpUG8VsgVnnjLoU8q7VH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.602016"], ["updated_at", "2019-07-04 00:27:45.604184"], ["created_at", "2019-07-04 00:27:45.604184"]]
11625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11626
+  (0.1ms) SAVEPOINT active_record_1
11627
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.608068"], ["accepted_at", "2019-07-04 00:27:45.608068"], ["id", 1]]
11628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11629
+  (0.6ms) rollback transaction
11630
+  (0.1ms) begin transaction
11631
+ -----------------------------------------------------
11632
+ ProposalTest: test_should_create_valid_proposal_token
11633
+ -----------------------------------------------------
11634
+ Proposal::Token Load (31.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.611025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11635
+  (0.1ms) SAVEPOINT active_record_1
11636
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.649161') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11637
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "GWcC6REdAZRSMMsD7s9n"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.644031"], ["updated_at", "2019-07-04 00:27:45.650407"], ["created_at", "2019-07-04 00:27:45.650407"]]
11638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11639
+  (0.6ms) rollback transaction
11640
+  (0.1ms) begin transaction
11641
+ ------------------------------------------------------------------
11642
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
11643
+ ------------------------------------------------------------------
11644
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.653919') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11645
+  (0.2ms) SAVEPOINT active_record_1
11646
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.656831') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11647
+ Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "B7zrHnJHsE75sKzmGY2j"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.655385"], ["updated_at", "2019-07-04 00:27:45.658047"], ["created_at", "2019-07-04 00:27:45.658047"]]
11648
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11649
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.661714') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11650
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11651
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11652
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11653
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11654
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11655
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11656
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11657
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11658
+  (0.8ms) rollback transaction
11659
+  (0.1ms) begin transaction
11660
+ ---------------------------------------------------------
11661
+ ProposalTest: test_should_validate_arguments_with_symbols
11662
+ ---------------------------------------------------------
11663
+ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.677389') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11664
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.680682') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11665
+  (0.1ms) rollback transaction
11666
+  (0.1ms) begin transaction
11667
+ --------------------------------------------------------
11668
+ ProposalTest: test_should_validate_arguments_with_symbol
11669
+ --------------------------------------------------------
11670
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.683223') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11671
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.685846') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11672
+  (0.1ms) rollback transaction
11673
+  (0.1ms) begin transaction
11674
+ --------------------------------------------------------
11675
+ ProposalTest: test_should_validate_arguments_with_a_proc
11676
+ --------------------------------------------------------
11677
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.688828') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11678
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.690932') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11679
+  (0.1ms) rollback transaction
11680
+  (0.1ms) begin transaction
11681
+ ------------------------------------------------------
11682
+ ProposalTest: test_should_not_return_proposal_instance
11683
+ ------------------------------------------------------
11684
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.693296') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11685
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11686
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11687
+  (0.1ms) rollback transaction
11688
+  (0.1ms) begin transaction
11689
+ -----------------------------------------------------------------
11690
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
11691
+ -----------------------------------------------------------------
11692
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.701770') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11693
+  (0.1ms) SAVEPOINT active_record_1
11694
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.707092') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11695
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "VzkUsVg1F83ea4uyssSB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.705862"], ["updated_at", "2019-07-04 00:27:45.708281"], ["created_at", "2019-07-04 00:27:45.708281"]]
11696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11697
+  (0.1ms) SAVEPOINT active_record_1
11698
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.710747"], ["accepted_at", "2019-07-04 00:27:45.710747"], ["id", 1]]
11699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11700
+  (0.6ms) rollback transaction
11701
+  (0.2ms) begin transaction
11702
+ --------------------------------------------------
11703
+ ProposalTest: test_should_return_proposal_instance
11704
+ --------------------------------------------------
11705
+  (0.1ms) SAVEPOINT active_record_1
11706
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.714470"], ["updated_at", "2019-07-04 00:27:45.714470"]]
11707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11708
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.722597') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11709
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11710
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.735043') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11711
+  (0.7ms) rollback transaction
11712
+  (0.1ms) begin transaction
11713
+ ---------------------------------------------
11714
+ ProposalTest: test_should_return_the_resource
11715
+ ---------------------------------------------
11716
+  (0.1ms) SAVEPOINT active_record_1
11717
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.738383"], ["updated_at", "2019-07-04 00:27:45.738383"]]
11718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11719
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.740389') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11720
+  (0.7ms) rollback transaction
11721
+  (0.1ms) begin transaction
11722
+ -------------------------------------------
11723
+ ProposalTest: test_should_set_reminded_bang
11724
+ -------------------------------------------
11725
+  (0.1ms) SAVEPOINT active_record_1
11726
+ User Create (2.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.748550"], ["updated_at", "2019-07-04 00:27:45.748550"]]
11727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11728
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.758264') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11729
+  (0.1ms) SAVEPOINT active_record_1
11730
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.766357') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11731
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gdCywyGhHC1FiGZpKzor"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.764992"], ["updated_at", "2019-07-04 00:27:45.767652"], ["created_at", "2019-07-04 00:27:45.767652"]]
11732
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11733
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.769272') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11734
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11735
+  (0.1ms) SAVEPOINT active_record_1
11736
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.773121"], ["reminded_at", "2019-07-04 00:27:45.773121"], ["id", 1]]
11737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11738
+  (0.7ms) rollback transaction
11739
+  (0.1ms) begin transaction
11740
+ ------------------------------------------------------------
11741
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
11742
+ ------------------------------------------------------------
11743
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.776344') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11744
+  (0.1ms) SAVEPOINT active_record_1
11745
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.780590') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11746
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "21nCjeGPTSfB4Yziqyqt"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:27:45.778067"], ["updated_at", "2019-07-04 00:27:45.782064"], ["created_at", "2019-07-04 00:27:45.782064"]]
11747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11748
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "21nCjeGPTSfB4Yziqyqt"], ["LIMIT", 1]]
11749
+  (2.0ms) rollback transaction
11750
+  (0.1ms) begin transaction
11751
+ -------------------------------------------------------
11752
+ ProposalTest: test_should_return_all_proposals_for_type
11753
+ -------------------------------------------------------
11754
+ Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.790817') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11755
+  (0.1ms) SAVEPOINT active_record_1
11756
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.794072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11757
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9pMpj2Gt4yDdiRpxfHG9"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.792930"], ["updated_at", "2019-07-04 00:27:45.795253"], ["created_at", "2019-07-04 00:27:45.795253"]]
11758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11759
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
11760
+  (0.8ms) rollback transaction
11761
+  (0.1ms) begin transaction
11762
+ ----------------------------------------------------------------------
11763
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
11764
+ ----------------------------------------------------------------------
11765
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.804449') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11766
+  (0.1ms) SAVEPOINT active_record_1
11767
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.806941') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11768
+ Proposal::Token Create (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rAiqiaT5iL1qUHfz5vrs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.805857"], ["updated_at", "2019-07-04 00:27:45.808110"], ["created_at", "2019-07-04 00:27:45.808110"]]
11769
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11770
+  (0.1ms) SAVEPOINT active_record_1
11771
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.811369"], ["accepted_at", "2019-07-04 00:27:45.811369"], ["id", 1]]
11772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11773
+  (0.8ms) rollback transaction
11774
+  (0.1ms) begin transaction
11775
+ ----------------------------------------------------------------
11776
+ ProposalTest: test_should_return_proposals_for_proposer_instance
11777
+ ----------------------------------------------------------------
11778
+  (0.1ms) SAVEPOINT active_record_1
11779
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.816777"], ["updated_at", "2019-07-04 00:27:45.816777"]]
11780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11781
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.818460') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11782
+  (0.3ms) SAVEPOINT active_record_1
11783
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.821583') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11784
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "h39EqSuxMPWESZM8Lgiq"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:27:45.819828"], ["updated_at", "2019-07-04 00:27:45.822954"], ["created_at", "2019-07-04 00:27:45.822954"]]
11785
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11786
+ 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]]
11787
+  (0.6ms) rollback transaction
11788
+  (0.1ms) begin transaction
11789
+ --------------------------------------------------
11790
+ ProposalTest: test_should_find_and_accept_proposal
11791
+ --------------------------------------------------
11792
+  (0.1ms) SAVEPOINT active_record_1
11793
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.832104"], ["updated_at", "2019-07-04 00:27:45.832104"]]
11794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11795
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.835632') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11796
+  (0.1ms) SAVEPOINT active_record_1
11797
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.858581') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11798
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jfeeS6gfB9L8Aofr9WAS"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.857403"], ["updated_at", "2019-07-04 00:27:45.859803"], ["created_at", "2019-07-04 00:27:45.859803"]]
11799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11800
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "jfeeS6gfB9L8Aofr9WAS"], ["LIMIT", 1]]
11801
+  (0.1ms) SAVEPOINT active_record_1
11802
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.869706"], ["accepted_at", "2019-07-04 00:27:45.869706"], ["id", 1]]
11803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11804
+  (0.7ms) rollback transaction
11805
+  (0.1ms) begin transaction
11806
+ -------------------------------------------------------
11807
+ ProposalTest: test_should_return_token_from_to_s_method
11808
+ -------------------------------------------------------
11809
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.873006') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11810
+  (0.1ms) SAVEPOINT active_record_1
11811
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.878200') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11812
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "v3S3856A1EMCVzuGtnGZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.876899"], ["updated_at", "2019-07-04 00:27:45.879711"], ["created_at", "2019-07-04 00:27:45.879711"]]
11813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11814
+  (0.7ms) rollback transaction
11815
+  (0.1ms) begin transaction
11816
+ -----------------------------------------------------------------------
11817
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
11818
+ -----------------------------------------------------------------------
11819
+  (0.1ms) SAVEPOINT active_record_1
11820
+ User Create (2.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.893457"], ["updated_at", "2019-07-04 00:27:45.893457"]]
11821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11822
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.899479') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11823
+  (0.1ms) SAVEPOINT active_record_1
11824
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.903563') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11825
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xogQqztnkRFhHCQc4G9h"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.902278"], ["updated_at", "2019-07-04 00:27:45.904782"], ["created_at", "2019-07-04 00:27:45.904782"]]
11826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11827
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.906500') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11828
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11829
+  (1.2ms) rollback transaction
11830
+  (0.1ms) begin transaction
11831
+ ---------------------------------------------------------------------
11832
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
11833
+ ---------------------------------------------------------------------
11834
+  (0.1ms) SAVEPOINT active_record_1
11835
+ Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.922336"], ["updated_at", "2019-07-04 00:27:45.922336"]]
11836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11837
+  (0.1ms) SAVEPOINT active_record_1
11838
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.924280"], ["updated_at", "2019-07-04 00:27:45.924280"]]
11839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11840
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.925510') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11841
+  (0.1ms) SAVEPOINT active_record_1
11842
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.927920') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11843
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "AsCfhWsx1JvJiFyBqt25"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.926900"], ["updated_at", "2019-07-04 00:27:45.929265"], ["created_at", "2019-07-04 00:27:45.929265"]]
11844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11845
+  (0.1ms) SAVEPOINT active_record_1
11846
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:45.933538"], ["accepted_at", "2019-07-04 00:27:45.933538"], ["id", 1]]
11847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11848
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.934663') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11849
+  (0.1ms) SAVEPOINT active_record_1
11850
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.936963') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11851
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qxUvhUzUMAsXGy8najwh"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:27:45.935929"], ["updated_at", "2019-07-04 00:27:45.938257"], ["created_at", "2019-07-04 00:27:45.938257"]]
11852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11853
+  (0.6ms) rollback transaction
11854
+  (0.1ms) begin transaction
11855
+ ----------------------------------------------------------------
11856
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
11857
+ ----------------------------------------------------------------
11858
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.942558') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11859
+  (0.1ms) SAVEPOINT active_record_1
11860
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.945629') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11861
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FVxZnDeLd5uissoj1pik"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:45.944445"], ["updated_at", "2019-07-04 00:27:45.946750"], ["created_at", "2019-07-04 00:27:45.946750"]]
11862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11863
+  (3.7ms) rollback transaction
11864
+  (0.1ms) begin transaction
11865
+ -------------------------------------------------
11866
+ ProposalTest: test_should_respond_to_the_resource
11867
+ -------------------------------------------------
11868
+  (0.1ms) SAVEPOINT active_record_1
11869
+ User Create (1.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.968268"], ["updated_at", "2019-07-04 00:27:45.968268"]]
11870
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11871
+  (0.1ms) SAVEPOINT active_record_1
11872
+ Project Create (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:27:45.974615"], ["updated_at", "2019-07-04 00:27:45.974615"]]
11873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11874
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.979374') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11875
+  (1.6ms) rollback transaction
11876
+  (0.4ms) begin transaction
11877
+ -------------------------------------------
11878
+ ProposalTest: test_should_set_reminded_safe
11879
+ -------------------------------------------
11880
+  (0.1ms) SAVEPOINT active_record_1
11881
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:45.996360"], ["updated_at", "2019-07-04 00:27:45.996360"]]
11882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11883
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:45.998366') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11884
+  (0.1ms) SAVEPOINT active_record_1
11885
+ Proposal::Token Exists (0.7ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:46.005045') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11886
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ArFMMJmk8yWxzsUeVmPX"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:27:46.000635"], ["updated_at", "2019-07-04 00:27:46.008583"], ["created_at", "2019-07-04 00:27:46.008583"]]
11887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11888
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:46.011209') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11889
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11890
+  (0.2ms) SAVEPOINT active_record_1
11891
+ Proposal::Token Update (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:27:46.017802"], ["reminded_at", "2019-07-04 00:27:46.017802"], ["id", 1]]
11892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11893
+  (0.9ms) rollback transaction
11894
+  (0.2ms) begin transaction
11895
+ --------------------------------------------------
11896
+ ProposalTest: test_should_respond_to_the_recipient
11897
+ --------------------------------------------------
11898
+  (11.2ms) SAVEPOINT active_record_1
11899
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:27:46.034669"], ["updated_at", "2019-07-04 00:27:46.034669"]]
11900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11901
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:27:46.037594') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11902
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11903
+  (0.7ms) rollback transaction
11904
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11905
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11906
+  (0.1ms) begin transaction
11907
+  (0.0ms) commit transaction
11908
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11909
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11910
+  (0.1ms) begin transaction
11911
+ ------------------------------------------------------
11912
+ ProposalTest: test_should_not_return_proposal_instance
11913
+ ------------------------------------------------------
11914
+ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.457778') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11915
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11916
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11917
+  (0.1ms) rollback transaction
11918
+  (0.1ms) begin transaction
11919
+ ------------------------------------------------------------------
11920
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
11921
+ ------------------------------------------------------------------
11922
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.509255') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11923
+  (0.1ms) SAVEPOINT active_record_1
11924
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.511588') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11925
+ Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "tNbQVhPeVW9TtEdfkWN1"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.510276"], ["updated_at", "2019-07-04 00:28:23.512856"], ["created_at", "2019-07-04 00:28:23.512856"]]
11926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11927
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.516997') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11928
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11929
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11930
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11931
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11932
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11933
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11934
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11935
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11936
+  (0.9ms) rollback transaction
11937
+  (0.1ms) begin transaction
11938
+ ----------------------------------------------
11939
+ ProposalTest: test_should_return_all_arguments
11940
+ ----------------------------------------------
11941
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.530428') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11942
+  (0.1ms) SAVEPOINT active_record_1
11943
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.532738') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11944
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "som6sbNNcikwxCSNP6yD"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:28:23.531739"], ["updated_at", "2019-07-04 00:28:23.533621"], ["created_at", "2019-07-04 00:28:23.533621"]]
11945
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11946
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "som6sbNNcikwxCSNP6yD"], ["LIMIT", 1]]
11947
+  (0.8ms) rollback transaction
11948
+  (0.1ms) begin transaction
11949
+ ----------------------------------------------------------------------
11950
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
11951
+ ----------------------------------------------------------------------
11952
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.540604') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11953
+  (0.1ms) SAVEPOINT active_record_1
11954
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.543007') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11955
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "iyWNacidcHiZGKh4fs3R"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.542048"], ["updated_at", "2019-07-04 00:28:23.543985"], ["created_at", "2019-07-04 00:28:23.543985"]]
11956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11957
+  (0.1ms) SAVEPOINT active_record_1
11958
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.548514"], ["accepted_at", "2019-07-04 00:28:23.548514"], ["id", 1]]
11959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11960
+  (1.8ms) rollback transaction
11961
+  (0.2ms) begin transaction
11962
+ ----------------------------------------------------------------
11963
+ ProposalTest: test_should_return_proposals_for_resource_instance
11964
+ ----------------------------------------------------------------
11965
+  (0.1ms) SAVEPOINT active_record_1
11966
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.559943"], ["updated_at", "2019-07-04 00:28:23.559943"]]
11967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11968
+  (0.2ms) SAVEPOINT active_record_1
11969
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.570268"], ["updated_at", "2019-07-04 00:28:23.570268"]]
11970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11971
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.571888') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11972
+  (0.1ms) SAVEPOINT active_record_1
11973
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.574243') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
11974
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "CqMAjVNsQMkMGYg9Aubh"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.573222"], ["updated_at", "2019-07-04 00:28:23.575222"], ["created_at", "2019-07-04 00:28:23.575222"]]
11975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11976
+ 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]]
11977
+  (0.6ms) rollback transaction
11978
+  (0.1ms) begin transaction
11979
+ --------------------------------------------
11980
+ ProposalTest: test_user_should_have_proposal
11981
+ --------------------------------------------
11982
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.578915') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11983
+  (0.1ms) rollback transaction
11984
+  (0.1ms) begin transaction
11985
+ -----------------------------------------------------------------------
11986
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
11987
+ -----------------------------------------------------------------------
11988
+  (0.2ms) SAVEPOINT active_record_1
11989
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.584956"], ["updated_at", "2019-07-04 00:28:23.584956"]]
11990
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11991
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.586758') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11992
+  (0.1ms) SAVEPOINT active_record_1
11993
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.589898') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11994
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PqVVEzhDSrjS3V2qxmrr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.588510"], ["updated_at", "2019-07-04 00:28:23.591508"], ["created_at", "2019-07-04 00:28:23.591508"]]
11995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11996
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.593701') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
11997
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
11998
+  (0.9ms) rollback transaction
11999
+  (0.1ms) begin transaction
12000
+ ---------------------------------------------
12001
+ ProposalTest: test_should_return_the_resource
12002
+ ---------------------------------------------
12003
+  (0.2ms) SAVEPOINT active_record_1
12004
+ Project Create (0.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.600922"], ["updated_at", "2019-07-04 00:28:23.600922"]]
12005
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12006
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.604303') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12007
+  (0.8ms) rollback transaction
12008
+  (0.1ms) begin transaction
12009
+ -------------------------------------------------
12010
+ ProposalTest: test_should_respond_to_the_resource
12011
+ -------------------------------------------------
12012
+  (0.1ms) SAVEPOINT active_record_1
12013
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.609956"], ["updated_at", "2019-07-04 00:28:23.609956"]]
12014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12015
+  (0.1ms) SAVEPOINT active_record_1
12016
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.612444"], ["updated_at", "2019-07-04 00:28:23.612444"]]
12017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12018
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.613907') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12019
+  (0.8ms) rollback transaction
12020
+  (0.3ms) begin transaction
12021
+ --------------------------------------------------
12022
+ ProposalTest: test_should_respond_to_the_recipient
12023
+ --------------------------------------------------
12024
+  (0.2ms) SAVEPOINT active_record_1
12025
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.620785"], ["updated_at", "2019-07-04 00:28:23.620785"]]
12026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12027
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.623667') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12028
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12029
+  (0.7ms) rollback transaction
12030
+  (0.1ms) begin transaction
12031
+ ---------------------------------------------------------
12032
+ ProposalTest: test_should_validate_arguments_with_symbols
12033
+ ---------------------------------------------------------
12034
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.629961') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12035
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.633090') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12036
+  (0.2ms) rollback transaction
12037
+  (0.2ms) begin transaction
12038
+ -----------------------------------------------------------
12039
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
12040
+ -----------------------------------------------------------
12041
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.637816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12042
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.640685') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12043
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12044
+  (0.1ms) rollback transaction
12045
+  (0.1ms) begin transaction
12046
+ ----------------------------------------------------------------
12047
+ ProposalTest: test_should_return_proposals_for_proposer_instance
12048
+ ----------------------------------------------------------------
12049
+  (0.1ms) SAVEPOINT active_record_1
12050
+ User Create (3.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.645219"], ["updated_at", "2019-07-04 00:28:23.645219"]]
12051
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12052
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.652808') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12053
+  (0.1ms) SAVEPOINT active_record_1
12054
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.657478') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12055
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "w3HHK3zxqCrDnhcxNdpG"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:28:23.655810"], ["updated_at", "2019-07-04 00:28:23.659372"], ["created_at", "2019-07-04 00:28:23.659372"]]
12056
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12057
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]
12058
+  (2.7ms) rollback transaction
12059
+  (0.2ms) begin transaction
12060
+ -----------------------------------------------------
12061
+ ProposalTest: test_should_create_valid_proposal_token
12062
+ -----------------------------------------------------
12063
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.673155') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12064
+  (0.1ms) SAVEPOINT active_record_1
12065
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.676383') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12066
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "odhea5jntdycm4E3gJas"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.674896"], ["updated_at", "2019-07-04 00:28:23.677544"], ["created_at", "2019-07-04 00:28:23.677544"]]
12067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12068
+  (0.9ms) rollback transaction
12069
+  (0.1ms) begin transaction
12070
+ -------------------------------------------
12071
+ ProposalTest: test_should_set_reminded_bang
12072
+ -------------------------------------------
12073
+  (0.1ms) SAVEPOINT active_record_1
12074
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.683919"], ["updated_at", "2019-07-04 00:28:23.683919"]]
12075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12076
+ Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.686034') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12077
+  (0.1ms) SAVEPOINT active_record_1
12078
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.690842') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12079
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "a32Am4aFmbyR2xKj1vjg"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.688751"], ["updated_at", "2019-07-04 00:28:23.692412"], ["created_at", "2019-07-04 00:28:23.692412"]]
12080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12081
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.694396') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12082
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12083
+  (0.1ms) SAVEPOINT active_record_1
12084
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.697493"], ["reminded_at", "2019-07-04 00:28:23.697493"], ["id", 1]]
12085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12086
+  (0.7ms) rollback transaction
12087
+  (0.1ms) begin transaction
12088
+ ----------------------------------------------------------
12089
+ ProposalTest: test_should_not_return_no_action_if_accepted
12090
+ ----------------------------------------------------------
12091
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.701939') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12092
+  (0.1ms) SAVEPOINT active_record_1
12093
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.705074') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12094
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "DcFqEyKFiDvmYscpZnVZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.704021"], ["updated_at", "2019-07-04 00:28:23.706046"], ["created_at", "2019-07-04 00:28:23.706046"]]
12095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12096
+  (0.0ms) SAVEPOINT active_record_1
12097
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.707965"], ["accepted_at", "2019-07-04 00:28:23.707965"], ["id", 1]]
12098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12099
+  (0.7ms) rollback transaction
12100
+  (0.2ms) begin transaction
12101
+ -------------------------------------------------------
12102
+ ProposalTest: test_should_return_all_proposals_for_type
12103
+ -------------------------------------------------------
12104
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.712908') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12105
+  (0.1ms) SAVEPOINT active_record_1
12106
+ Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.716184') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12107
+ Proposal::Token Create (0.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "6HuRtpXo8uittq9sPDZo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.715104"], ["updated_at", "2019-07-04 00:28:23.718966"], ["created_at", "2019-07-04 00:28:23.718966"]]
12108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12109
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
12110
+  (0.8ms) rollback transaction
12111
+  (0.1ms) begin transaction
12112
+ -----------------------------------------------------------------
12113
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
12114
+ -----------------------------------------------------------------
12115
+ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.726191') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12116
+  (0.2ms) SAVEPOINT active_record_1
12117
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.732599') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12118
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "HvsZZeZWFxnMLinkLMLY"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.729589"], ["updated_at", "2019-07-04 00:28:23.734808"], ["created_at", "2019-07-04 00:28:23.734808"]]
12119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12120
+  (0.1ms) SAVEPOINT active_record_1
12121
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.738491"], ["accepted_at", "2019-07-04 00:28:23.738491"], ["id", 1]]
12122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12123
+  (0.8ms) rollback transaction
12124
+  (0.1ms) begin transaction
12125
+ ------------------------
12126
+ ProposalTest: test_truth
12127
+ ------------------------
12128
+  (0.0ms) rollback transaction
12129
+  (0.0ms) begin transaction
12130
+ ---------------------------------------------------------------------
12131
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
12132
+ ---------------------------------------------------------------------
12133
+  (0.1ms) SAVEPOINT active_record_1
12134
+ Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.743113"], ["updated_at", "2019-07-04 00:28:23.743113"]]
12135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12136
+  (0.2ms) SAVEPOINT active_record_1
12137
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.748319"], ["updated_at", "2019-07-04 00:28:23.748319"]]
12138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12139
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.750307') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12140
+  (0.1ms) SAVEPOINT active_record_1
12141
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.753221') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12142
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KsdbtcspNypQDqzgySth"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.752083"], ["updated_at", "2019-07-04 00:28:23.754689"], ["created_at", "2019-07-04 00:28:23.754689"]]
12143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12144
+  (0.1ms) SAVEPOINT active_record_1
12145
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.756863"], ["accepted_at", "2019-07-04 00:28:23.756863"], ["id", 1]]
12146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12147
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.758180') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12148
+  (0.1ms) SAVEPOINT active_record_1
12149
+ Proposal::Token Exists (0.9ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.761059') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12150
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "yL8JartCh6KH2G3UiG71"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.759333"], ["updated_at", "2019-07-04 00:28:23.763311"], ["created_at", "2019-07-04 00:28:23.763311"]]
12151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12152
+  (0.6ms) rollback transaction
12153
+  (0.1ms) begin transaction
12154
+ -----------------------------------------------------------
12155
+ ProposalTest: test_should_not_return_proposal_action_invite
12156
+ -----------------------------------------------------------
12157
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.768567') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12158
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.770943') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12160
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.773446') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12162
+  (0.1ms) rollback transaction
12163
+  (0.1ms) begin transaction
12164
+ ----------------------------------------------------------------
12165
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
12166
+ ----------------------------------------------------------------
12167
+  (0.1ms) SAVEPOINT active_record_1
12168
+ Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.777485') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12169
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "zkLqP7s6B2yYeC9sDmSF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:28:23.777055"], ["updated_at", "2019-07-04 00:28:23.778861"], ["created_at", "2019-07-04 00:28:23.778861"]]
12170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12171
+  (0.1ms) SAVEPOINT active_record_1
12172
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.782122') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12173
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12174
+  (0.7ms) rollback transaction
12175
+  (0.1ms) begin transaction
12176
+ --------------------------------------------------
12177
+ ProposalTest: test_should_find_and_accept_proposal
12178
+ --------------------------------------------------
12179
+  (0.1ms) SAVEPOINT active_record_1
12180
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.785496"], ["updated_at", "2019-07-04 00:28:23.785496"]]
12181
+  (0.4ms) RELEASE SAVEPOINT active_record_1
12182
+ Proposal::Token Load (3.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.789694') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12183
+  (0.1ms) SAVEPOINT active_record_1
12184
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.795181') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12185
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gjtfz3spzekY2g1UPmp5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.794062"], ["updated_at", "2019-07-04 00:28:23.796466"], ["created_at", "2019-07-04 00:28:23.796466"]]
12186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12187
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "gjtfz3spzekY2g1UPmp5"], ["LIMIT", 1]]
12188
+  (0.1ms) SAVEPOINT active_record_1
12189
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.813729"], ["accepted_at", "2019-07-04 00:28:23.813729"], ["id", 1]]
12190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12191
+  (0.7ms) rollback transaction
12192
+  (0.1ms) begin transaction
12193
+ --------------------------------------------------------
12194
+ ProposalTest: test_should_validate_arguments_with_symbol
12195
+ --------------------------------------------------------
12196
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.816966') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12197
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.819501') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12198
+  (0.1ms) rollback transaction
12199
+  (0.1ms) begin transaction
12200
+ -----------------------------------------------------------
12201
+ ProposalTest: test_should_not_return_proposal_action_notify
12202
+ -----------------------------------------------------------
12203
+  (0.1ms) SAVEPOINT active_record_1
12204
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.822645"], ["updated_at", "2019-07-04 00:28:23.822645"]]
12205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12206
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.824469') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12207
+ Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.827217') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12208
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12209
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.831083') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12210
+  (0.6ms) rollback transaction
12211
+  (0.1ms) begin transaction
12212
+ ------------------------------------------------------------
12213
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
12214
+ ------------------------------------------------------------
12215
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.834338') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12216
+  (0.1ms) SAVEPOINT active_record_1
12217
+ Proposal::Token Exists (2.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.838100') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12218
+ Proposal::Token Create (1.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "UQDZVUgHBazohbbu6Aqc"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:28:23.835552"], ["updated_at", "2019-07-04 00:28:23.853161"], ["created_at", "2019-07-04 00:28:23.853161"]]
12219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12220
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "UQDZVUgHBazohbbu6Aqc"], ["LIMIT", 1]]
12221
+  (0.7ms) rollback transaction
12222
+  (0.1ms) begin transaction
12223
+ -------------------------------------------------------
12224
+ ProposalTest: test_should_return_token_from_to_s_method
12225
+ -------------------------------------------------------
12226
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.862955') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12227
+  (0.1ms) SAVEPOINT active_record_1
12228
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.866229') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12229
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Ss94MQbo7zurddFqCr5b"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.864969"], ["updated_at", "2019-07-04 00:28:23.867327"], ["created_at", "2019-07-04 00:28:23.867327"]]
12230
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12231
+  (0.7ms) rollback transaction
12232
+  (0.1ms) begin transaction
12233
+ --------------------------------------------------------
12234
+ ProposalTest: test_should_validate_arguments_with_a_proc
12235
+ --------------------------------------------------------
12236
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.872461') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12237
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.874312') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12238
+  (0.1ms) rollback transaction
12239
+  (0.1ms) begin transaction
12240
+ --------------------------------------------------
12241
+ ProposalTest: test_should_return_proposal_instance
12242
+ --------------------------------------------------
12243
+  (0.1ms) SAVEPOINT active_record_1
12244
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.876798"], ["updated_at", "2019-07-04 00:28:23.876798"]]
12245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12246
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.878168') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12247
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12248
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.882063') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12249
+  (0.5ms) rollback transaction
12250
+  (0.1ms) begin transaction
12251
+ -------------------------------------------
12252
+ ProposalTest: test_should_set_reminded_safe
12253
+ -------------------------------------------
12254
+  (0.2ms) SAVEPOINT active_record_1
12255
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:28:23.885544"], ["updated_at", "2019-07-04 00:28:23.885544"]]
12256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12257
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.887527') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12258
+  (0.1ms) SAVEPOINT active_record_1
12259
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.890505') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12260
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QzXtrmUxLVMbyc8yTwnp"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.889382"], ["updated_at", "2019-07-04 00:28:23.891831"], ["created_at", "2019-07-04 00:28:23.891831"]]
12261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12262
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.893446') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12263
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12264
+  (0.1ms) SAVEPOINT active_record_1
12265
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:28:23.895970"], ["reminded_at", "2019-07-04 00:28:23.895970"], ["id", 1]]
12266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12267
+  (0.6ms) rollback transaction
12268
+  (0.1ms) begin transaction
12269
+ ----------------------------------------------------------------
12270
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
12271
+ ----------------------------------------------------------------
12272
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.898812') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12273
+  (0.1ms) SAVEPOINT active_record_1
12274
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.901500') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12275
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "wmsfVHgy1XZrs4kNdsqD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:28:23.900221"], ["updated_at", "2019-07-04 00:28:23.903265"], ["created_at", "2019-07-04 00:28:23.903265"]]
12276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12277
+  (0.8ms) rollback transaction
12278
+  (0.2ms) begin transaction
12279
+ -------------------------------------------
12280
+ ProposalTest: test_should_accept_a_resource
12281
+ -------------------------------------------
12282
+  (0.1ms) SAVEPOINT active_record_1
12283
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.909296"], ["updated_at", "2019-07-04 00:28:23.909296"]]
12284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12285
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.911077') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12286
+  (0.2ms) SAVEPOINT active_record_1
12287
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.915040') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12288
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "SzRzf3PM739TQnucqZaq"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:28:23.912669"], ["updated_at", "2019-07-04 00:28:23.916900"], ["created_at", "2019-07-04 00:28:23.916900"]]
12289
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12290
+  (0.1ms) SAVEPOINT active_record_1
12291
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:28:23.919878"], ["updated_at", "2019-07-04 00:28:23.919878"]]
12292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12293
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.921950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12294
+  (0.1ms) SAVEPOINT active_record_1
12295
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.925351') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12296
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "pd9ZkiPqjJTqgtcCH9iz"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:28:23.923871"], ["updated_at", "2019-07-04 00:28:23.926613"], ["created_at", "2019-07-04 00:28:23.926613"]]
12297
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12298
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.929304') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12299
+  (1.1ms) rollback transaction
12300
+  (0.1ms) begin transaction
12301
+ -----------------------------------------------------------------
12302
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
12303
+ -----------------------------------------------------------------
12304
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.933943') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12305
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:28:23.938236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12306
+  (0.2ms) rollback transaction
12307
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
12308
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
12309
+  (0.1ms) begin transaction
12310
+  (0.0ms) commit transaction
12311
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
12312
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
12313
+  (0.1ms) begin transaction
12314
+ -------------------------------------------
12315
+ ProposalTest: test_should_set_reminded_bang
12316
+ -------------------------------------------
12317
+  (0.1ms) SAVEPOINT active_record_1
12318
+ User Create (1.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.209192"], ["updated_at", "2019-07-04 00:30:15.209192"]]
12319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12320
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.223791') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12321
+  (0.1ms) SAVEPOINT active_record_1
12322
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.265230') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12323
+ Proposal::Token Create (1.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ywZiMzP5FqbwqPYujxBs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.256288"], ["updated_at", "2019-07-04 00:30:15.266322"], ["created_at", "2019-07-04 00:30:15.266322"]]
12324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12325
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.268750') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12326
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12327
+  (0.1ms) SAVEPOINT active_record_1
12328
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.272317"], ["reminded_at", "2019-07-04 00:30:15.272317"], ["id", 1]]
12329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12330
+  (0.5ms) rollback transaction
12331
+  (0.1ms) begin transaction
12332
+ --------------------------------------------
12333
+ ProposalTest: test_user_should_have_proposal
12334
+ --------------------------------------------
12335
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.275146') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12336
+  (0.1ms) rollback transaction
12337
+  (0.0ms) begin transaction
12338
+ -----------------------------------------------------------
12339
+ ProposalTest: test_should_not_return_proposal_action_notify
12340
+ -----------------------------------------------------------
12341
+  (0.1ms) SAVEPOINT active_record_1
12342
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.277723"], ["updated_at", "2019-07-04 00:30:15.277723"]]
12343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12344
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.278892') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12345
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.280242') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12346
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12347
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.281919') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12348
+  (0.5ms) rollback transaction
12349
+  (0.0ms) begin transaction
12350
+ -----------------------------------------------------------
12351
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
12352
+ -----------------------------------------------------------
12353
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.284026') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12354
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.286213') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12355
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12356
+  (0.1ms) rollback transaction
12357
+  (0.1ms) begin transaction
12358
+ ------------------------
12359
+ ProposalTest: test_truth
12360
+ ------------------------
12361
+  (0.0ms) rollback transaction
12362
+  (0.0ms) begin transaction
12363
+ ----------------------------------------------------------------
12364
+ ProposalTest: test_should_return_proposals_for_proposer_instance
12365
+ ----------------------------------------------------------------
12366
+  (0.1ms) SAVEPOINT active_record_1
12367
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.289913"], ["updated_at", "2019-07-04 00:30:15.289913"]]
12368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12369
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.291031') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12370
+  (0.1ms) SAVEPOINT active_record_1
12371
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.292630') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12372
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "CR51xfDzHqk1subAWfJv"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:30:15.291808"], ["updated_at", "2019-07-04 00:30:15.293694"], ["created_at", "2019-07-04 00:30:15.293694"]]
12373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12374
+ 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]]
12375
+  (0.5ms) rollback transaction
12376
+  (0.1ms) begin transaction
12377
+ ------------------------------------------------------------
12378
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
12379
+ ------------------------------------------------------------
12380
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.297841') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12381
+  (0.1ms) SAVEPOINT active_record_1
12382
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.301771') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12383
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "ZQR3TAeXVEusGUBX43rs"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:30:15.299599"], ["updated_at", "2019-07-04 00:30:15.303081"], ["created_at", "2019-07-04 00:30:15.303081"]]
12384
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12385
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "ZQR3TAeXVEusGUBX43rs"], ["LIMIT", 1]]
12386
+  (0.6ms) rollback transaction
12387
+  (0.0ms) begin transaction
12388
+ -------------------------------------------
12389
+ ProposalTest: test_should_accept_a_resource
12390
+ -------------------------------------------
12391
+  (0.1ms) SAVEPOINT active_record_1
12392
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.313966"], ["updated_at", "2019-07-04 00:30:15.313966"]]
12393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12394
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.315930') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12395
+  (0.1ms) SAVEPOINT active_record_1
12396
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.318084') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12397
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "tcFgse8MyzwYpnNi6CfK"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.317201"], ["updated_at", "2019-07-04 00:30:15.319190"], ["created_at", "2019-07-04 00:30:15.319190"]]
12398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12399
+  (0.1ms) SAVEPOINT active_record_1
12400
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.320916"], ["updated_at", "2019-07-04 00:30:15.320916"]]
12401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12402
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.321985') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12403
+  (0.0ms) SAVEPOINT active_record_1
12404
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.323761') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12405
+ Proposal::Token Create (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "snH6R1zsVgjghqjLvEU5"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:30:15.322964"], ["updated_at", "2019-07-04 00:30:15.324725"], ["created_at", "2019-07-04 00:30:15.324725"]]
12406
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12407
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.325964') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12408
+  (0.6ms) rollback transaction
12409
+  (0.2ms) begin transaction
12410
+ -----------------------------------------------------
12411
+ ProposalTest: test_should_create_valid_proposal_token
12412
+ -----------------------------------------------------
12413
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.328787') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12414
+  (0.1ms) SAVEPOINT active_record_1
12415
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.331643') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12416
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "bEsFsGhezxutm6GGqAYW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.330317"], ["updated_at", "2019-07-04 00:30:15.333247"], ["created_at", "2019-07-04 00:30:15.333247"]]
12417
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12418
+  (0.7ms) rollback transaction
12419
+  (0.1ms) begin transaction
12420
+ -----------------------------------------------------------------------
12421
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
12422
+ -----------------------------------------------------------------------
12423
+  (0.1ms) SAVEPOINT active_record_1
12424
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.337041"], ["updated_at", "2019-07-04 00:30:15.337041"]]
12425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12426
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.338864') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12427
+  (0.1ms) SAVEPOINT active_record_1
12428
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.341418') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12429
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "BjKEzn1Z3Bans7sxwpJA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.340294"], ["updated_at", "2019-07-04 00:30:15.342551"], ["created_at", "2019-07-04 00:30:15.342551"]]
12430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12431
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.344575') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12433
+  (0.7ms) rollback transaction
12434
+  (0.2ms) begin transaction
12435
+ ----------------------------------------------------------------
12436
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
12437
+ ----------------------------------------------------------------
12438
+  (0.1ms) SAVEPOINT active_record_1
12439
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.351121') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12440
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MeMYqJZAJXZS9xo1vFVu"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:30:15.350401"], ["updated_at", "2019-07-04 00:30:15.352855"], ["created_at", "2019-07-04 00:30:15.352855"]]
12441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12442
+  (0.1ms) SAVEPOINT active_record_1
12443
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.355496') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12444
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12445
+  (0.6ms) rollback transaction
12446
+  (0.3ms) begin transaction
12447
+ -----------------------------------------------------------------
12448
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
12449
+ -----------------------------------------------------------------
12450
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.359063') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12451
+  (0.1ms) SAVEPOINT active_record_1
12452
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.362119') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12453
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "uHcr39cu8GPcs5Npoxzw"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.360798"], ["updated_at", "2019-07-04 00:30:15.363112"], ["created_at", "2019-07-04 00:30:15.363112"]]
12454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12455
+  (0.1ms) SAVEPOINT active_record_1
12456
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.365467"], ["accepted_at", "2019-07-04 00:30:15.365467"], ["id", 1]]
12457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12458
+  (0.6ms) rollback transaction
12459
+  (0.2ms) begin transaction
12460
+ ----------------------------------------------------------
12461
+ ProposalTest: test_should_not_return_no_action_if_accepted
12462
+ ----------------------------------------------------------
12463
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.369065') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12464
+  (0.1ms) SAVEPOINT active_record_1
12465
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.371853') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12466
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "L8k1xxbf7mzYoSC1xSi8"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.370712"], ["updated_at", "2019-07-04 00:30:15.373058"], ["created_at", "2019-07-04 00:30:15.373058"]]
12467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12468
+  (0.1ms) SAVEPOINT active_record_1
12469
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.375912"], ["accepted_at", "2019-07-04 00:30:15.375912"], ["id", 1]]
12470
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12471
+  (0.8ms) rollback transaction
12472
+  (0.1ms) begin transaction
12473
+ ----------------------------------------------------------------
12474
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
12475
+ ----------------------------------------------------------------
12476
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.380344') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12477
+  (0.1ms) SAVEPOINT active_record_1
12478
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.383459') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12479
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Q1LhpxRVSx9LzxA8jGzF"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.382101"], ["updated_at", "2019-07-04 00:30:15.385008"], ["created_at", "2019-07-04 00:30:15.385008"]]
12480
+  (0.5ms) RELEASE SAVEPOINT active_record_1
12481
+  (0.9ms) rollback transaction
12482
+  (0.1ms) begin transaction
12483
+ ------------------------------------------------------------------
12484
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
12485
+ ------------------------------------------------------------------
12486
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.392524') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12487
+  (0.1ms) SAVEPOINT active_record_1
12488
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.395064') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12489
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mEnYApiTDgfCsRiyniUK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.394082"], ["updated_at", "2019-07-04 00:30:15.395973"], ["created_at", "2019-07-04 00:30:15.395973"]]
12490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12491
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.397305') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12492
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12493
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12494
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12495
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12497
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12498
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12499
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12500
+  (0.6ms) rollback transaction
12501
+  (0.0ms) begin transaction
12502
+ -----------------------------------------------------------
12503
+ ProposalTest: test_should_not_return_proposal_action_invite
12504
+ -----------------------------------------------------------
12505
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.406555') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12506
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.408289') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12507
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12508
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.411201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12509
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12510
+  (0.1ms) rollback transaction
12511
+  (0.3ms) begin transaction
12512
+ --------------------------------------------------
12513
+ ProposalTest: test_should_return_proposal_instance
12514
+ --------------------------------------------------
12515
+  (0.3ms) SAVEPOINT active_record_1
12516
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.419746"], ["updated_at", "2019-07-04 00:30:15.419746"]]
12517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12518
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.423436') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12520
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.427866') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12521
+  (0.9ms) rollback transaction
12522
+  (0.1ms) begin transaction
12523
+ -------------------------------------------------
12524
+ ProposalTest: test_should_respond_to_the_resource
12525
+ -------------------------------------------------
12526
+  (0.1ms) SAVEPOINT active_record_1
12527
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.432399"], ["updated_at", "2019-07-04 00:30:15.432399"]]
12528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12529
+  (0.1ms) SAVEPOINT active_record_1
12530
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.435710"], ["updated_at", "2019-07-04 00:30:15.435710"]]
12531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12532
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.437013') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12533
+  (0.5ms) rollback transaction
12534
+  (0.1ms) begin transaction
12535
+ --------------------------------------------------------
12536
+ ProposalTest: test_should_validate_arguments_with_a_proc
12537
+ --------------------------------------------------------
12538
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.440012') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12539
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.441908') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12540
+  (0.2ms) rollback transaction
12541
+  (0.1ms) begin transaction
12542
+ ---------------------------------------------
12543
+ ProposalTest: test_should_return_the_resource
12544
+ ---------------------------------------------
12545
+  (0.2ms) SAVEPOINT active_record_1
12546
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.445692"], ["updated_at", "2019-07-04 00:30:15.445692"]]
12547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12548
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.448027') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12549
+  (0.5ms) rollback transaction
12550
+  (0.1ms) begin transaction
12551
+ --------------------------------------------------------
12552
+ ProposalTest: test_should_validate_arguments_with_symbol
12553
+ --------------------------------------------------------
12554
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.452122') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12555
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.454034') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12556
+  (0.1ms) rollback transaction
12557
+  (0.1ms) begin transaction
12558
+ --------------------------------------------------
12559
+ ProposalTest: test_should_respond_to_the_recipient
12560
+ --------------------------------------------------
12561
+  (0.1ms) SAVEPOINT active_record_1
12562
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.456400"], ["updated_at", "2019-07-04 00:30:15.456400"]]
12563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12564
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.457809') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12565
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12566
+  (0.9ms) rollback transaction
12567
+  (0.1ms) begin transaction
12568
+ -----------------------------------------------------------------
12569
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
12570
+ -----------------------------------------------------------------
12571
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.464757') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12572
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.468166') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12573
+  (0.1ms) rollback transaction
12574
+  (0.0ms) begin transaction
12575
+ ----------------------------------------------------------------
12576
+ ProposalTest: test_should_return_proposals_for_resource_instance
12577
+ ----------------------------------------------------------------
12578
+  (0.1ms) SAVEPOINT active_record_1
12579
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.470718"], ["updated_at", "2019-07-04 00:30:15.470718"]]
12580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12581
+  (0.0ms) SAVEPOINT active_record_1
12582
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.472427"], ["updated_at", "2019-07-04 00:30:15.472427"]]
12583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12584
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.473679') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12585
+  (0.2ms) SAVEPOINT active_record_1
12586
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.479342') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12587
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "K9duQ75b7ngncKF7Pzxc"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.475697"], ["updated_at", "2019-07-04 00:30:15.491046"], ["created_at", "2019-07-04 00:30:15.491046"]]
12588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12589
+ 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]]
12590
+  (1.1ms) rollback transaction
12591
+  (0.2ms) begin transaction
12592
+ ----------------------------------------------
12593
+ ProposalTest: test_should_return_all_arguments
12594
+ ----------------------------------------------
12595
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.496796') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12596
+  (0.1ms) SAVEPOINT active_record_1
12597
+ Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.499276') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12598
+ Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "3bDge1Z3sAs7sZbx6ZJL"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:30:15.498145"], ["updated_at", "2019-07-04 00:30:15.501208"], ["created_at", "2019-07-04 00:30:15.501208"]]
12599
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12600
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "3bDge1Z3sAs7sZbx6ZJL"], ["LIMIT", 1]]
12601
+  (0.9ms) rollback transaction
12602
+  (0.1ms) begin transaction
12603
+ -------------------------------------------------------
12604
+ ProposalTest: test_should_return_token_from_to_s_method
12605
+ -------------------------------------------------------
12606
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.511301') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12607
+  (0.1ms) SAVEPOINT active_record_1
12608
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.513603') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12609
+ Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qXXHHPBHvpchmLWsoggH"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.512638"], ["updated_at", "2019-07-04 00:30:15.514429"], ["created_at", "2019-07-04 00:30:15.514429"]]
12610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12611
+  (0.9ms) rollback transaction
12612
+  (0.1ms) begin transaction
12613
+ -------------------------------------------
12614
+ ProposalTest: test_should_set_reminded_safe
12615
+ -------------------------------------------
12616
+  (0.1ms) SAVEPOINT active_record_1
12617
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.523451"], ["updated_at", "2019-07-04 00:30:15.523451"]]
12618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12619
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.525025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12620
+  (0.1ms) SAVEPOINT active_record_1
12621
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.527674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12622
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "vehvkusWEHLmrNvchoDy"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.526383"], ["updated_at", "2019-07-04 00:30:15.528817"], ["created_at", "2019-07-04 00:30:15.528817"]]
12623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12624
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.530304') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12625
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12626
+  (0.1ms) SAVEPOINT active_record_1
12627
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.534271"], ["reminded_at", "2019-07-04 00:30:15.534271"], ["id", 1]]
12628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12629
+  (1.3ms) rollback transaction
12630
+  (0.1ms) begin transaction
12631
+ ----------------------------------------------------------------------
12632
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
12633
+ ----------------------------------------------------------------------
12634
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.539154') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12635
+  (0.1ms) SAVEPOINT active_record_1
12636
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.541816') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12637
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "9ZY49v5h6Rappb4nUpbG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.540759"], ["updated_at", "2019-07-04 00:30:15.542874"], ["created_at", "2019-07-04 00:30:15.542874"]]
12638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12639
+  (0.1ms) SAVEPOINT active_record_1
12640
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.545465"], ["accepted_at", "2019-07-04 00:30:15.545465"], ["id", 1]]
12641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12642
+  (0.6ms) rollback transaction
12643
+  (0.1ms) begin transaction
12644
+ --------------------------------------------------
12645
+ ProposalTest: test_should_find_and_accept_proposal
12646
+ --------------------------------------------------
12647
+  (0.5ms) SAVEPOINT active_record_1
12648
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.550349"], ["updated_at", "2019-07-04 00:30:15.550349"]]
12649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12650
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.552479') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12651
+  (0.1ms) SAVEPOINT active_record_1
12652
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.555322') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12653
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cFRNUpJGi7eh1qC4EctB"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.554164"], ["updated_at", "2019-07-04 00:30:15.556492"], ["created_at", "2019-07-04 00:30:15.556492"]]
12654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12655
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "cFRNUpJGi7eh1qC4EctB"], ["LIMIT", 1]]
12656
+  (0.1ms) SAVEPOINT active_record_1
12657
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.558965"], ["accepted_at", "2019-07-04 00:30:15.558965"], ["id", 1]]
12658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12659
+  (0.6ms) rollback transaction
12660
+  (0.1ms) begin transaction
12661
+ ---------------------------------------------------------------------
12662
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
12663
+ ---------------------------------------------------------------------
12664
+  (0.1ms) SAVEPOINT active_record_1
12665
+ Project Create (0.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:30:15.562543"], ["updated_at", "2019-07-04 00:30:15.562543"]]
12666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12667
+  (0.0ms) SAVEPOINT active_record_1
12668
+ User Create (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:30:15.564342"], ["updated_at", "2019-07-04 00:30:15.564342"]]
12669
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12670
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.566936') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12671
+  (0.1ms) SAVEPOINT active_record_1
12672
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.569767') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12673
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "bzvKV4zLe4oqsAAt9LWW"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.568699"], ["updated_at", "2019-07-04 00:30:15.571205"], ["created_at", "2019-07-04 00:30:15.571205"]]
12674
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12675
+  (0.1ms) SAVEPOINT active_record_1
12676
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:30:15.573321"], ["accepted_at", "2019-07-04 00:30:15.573321"], ["id", 1]]
12677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12678
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.574516') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12679
+  (0.1ms) SAVEPOINT active_record_1
12680
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.577887') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12681
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "LgxvRhjMmsWXVHisWUGx"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:30:15.576382"], ["updated_at", "2019-07-04 00:30:15.579230"], ["created_at", "2019-07-04 00:30:15.579230"]]
12682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12683
+  (0.9ms) rollback transaction
12684
+  (0.1ms) begin transaction
12685
+ ---------------------------------------------------------
12686
+ ProposalTest: test_should_validate_arguments_with_symbols
12687
+ ---------------------------------------------------------
12688
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.583860') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12689
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.586864') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12690
+  (0.2ms) rollback transaction
12691
+  (0.1ms) begin transaction
12692
+ -------------------------------------------------------
12693
+ ProposalTest: test_should_return_all_proposals_for_type
12694
+ -------------------------------------------------------
12695
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.590683') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12696
+  (0.1ms) SAVEPOINT active_record_1
12697
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.592921') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12698
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "FSmLeAiHznzLRX9K3wqZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:30:15.591876"], ["updated_at", "2019-07-04 00:30:15.594267"], ["created_at", "2019-07-04 00:30:15.594267"]]
12699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12700
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
12701
+  (0.7ms) rollback transaction
12702
+  (0.2ms) begin transaction
12703
+ ------------------------------------------------------
12704
+ ProposalTest: test_should_not_return_proposal_instance
12705
+ ------------------------------------------------------
12706
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:30:15.598772') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12707
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12708
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12709
+  (0.1ms) rollback transaction
12710
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
12711
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
12712
+  (0.1ms) begin transaction
12713
+  (0.1ms) commit transaction
12714
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
12715
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
12716
+  (0.1ms) begin transaction
12717
+ ------------------------------------------------------------
12718
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
12719
+ ------------------------------------------------------------
12720
+ Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.466697') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12721
+  (0.1ms) SAVEPOINT active_record_1
12722
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.507403') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12723
+ Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "r9DYUTJKKmJDtzyrWNnK"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:32:25.486072"], ["updated_at", "2019-07-04 00:32:25.508712"], ["created_at", "2019-07-04 00:32:25.508712"]]
12724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12725
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "r9DYUTJKKmJDtzyrWNnK"], ["LIMIT", 1]]
12726
+  (0.5ms) rollback transaction
12727
+  (0.0ms) begin transaction
12728
+ --------------------------------------------------
12729
+ ProposalTest: test_should_return_proposal_instance
12730
+ --------------------------------------------------
12731
+  (0.1ms) SAVEPOINT active_record_1
12732
+ User Create (1.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.521051"], ["updated_at", "2019-07-04 00:32:25.521051"]]
12733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12734
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.523439') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12735
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12736
+ Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.526137') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12737
+  (0.5ms) rollback transaction
12738
+  (0.0ms) begin transaction
12739
+ -------------------------------------------
12740
+ ProposalTest: test_should_accept_a_resource
12741
+ -------------------------------------------
12742
+  (0.1ms) SAVEPOINT active_record_1
12743
+ Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.545089"], ["updated_at", "2019-07-04 00:32:25.545089"]]
12744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12745
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.546756') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12746
+  (0.0ms) SAVEPOINT active_record_1
12747
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.548440') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12748
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "DZMWDGL38qk5VqrQKsHj"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.547784"], ["updated_at", "2019-07-04 00:32:25.549715"], ["created_at", "2019-07-04 00:32:25.549715"]]
12749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12750
+  (0.0ms) SAVEPOINT active_record_1
12751
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.551278"], ["updated_at", "2019-07-04 00:32:25.551278"]]
12752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12753
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.552114') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12754
+  (0.1ms) SAVEPOINT active_record_1
12755
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.554033') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12756
+ Proposal::Token Create (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "MTNaEnFKMXKNtkQuxzoe"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:32:25.553176"], ["updated_at", "2019-07-04 00:32:25.554883"], ["created_at", "2019-07-04 00:32:25.554883"]]
12757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12758
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.556024') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
12759
+  (0.6ms) rollback transaction
12760
+  (0.1ms) begin transaction
12761
+ ----------------------------------------------------------------
12762
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
12763
+ ----------------------------------------------------------------
12764
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.558797') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12765
+  (0.1ms) SAVEPOINT active_record_1
12766
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.561009') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12767
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "dHLxAuj78rcPvCNoT3v2"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.560065"], ["updated_at", "2019-07-04 00:32:25.561918"], ["created_at", "2019-07-04 00:32:25.561918"]]
12768
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12769
+  (0.8ms) rollback transaction
12770
+  (0.3ms) begin transaction
12771
+ -----------------------------------------------------------------
12772
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
12773
+ -----------------------------------------------------------------
12774
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.566696') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12775
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.569678') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12776
+  (0.1ms) rollback transaction
12777
+  (0.0ms) begin transaction
12778
+ ------------------------------------------------------------------
12779
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
12780
+ ------------------------------------------------------------------
12781
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.571564') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12782
+  (0.1ms) SAVEPOINT active_record_1
12783
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.573829') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12784
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "119EZGDCgr4eTDqHqmNG"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.572845"], ["updated_at", "2019-07-04 00:32:25.574963"], ["created_at", "2019-07-04 00:32:25.574963"]]
12785
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12786
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.577072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12787
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12788
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12789
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12790
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12791
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12792
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12793
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12795
+  (0.7ms) rollback transaction
12796
+  (0.1ms) begin transaction
12797
+ -------------------------------------------
12798
+ ProposalTest: test_should_set_reminded_bang
12799
+ -------------------------------------------
12800
+  (0.1ms) SAVEPOINT active_record_1
12801
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.588293"], ["updated_at", "2019-07-04 00:32:25.588293"]]
12802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12803
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.589923') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12804
+  (0.1ms) SAVEPOINT active_record_1
12805
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.592534') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12806
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xaSw2PkHXCnH7SxpGfxb"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.591198"], ["updated_at", "2019-07-04 00:32:25.593621"], ["created_at", "2019-07-04 00:32:25.593621"]]
12807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12808
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.595265') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12809
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12810
+  (0.1ms) SAVEPOINT active_record_1
12811
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.598335"], ["reminded_at", "2019-07-04 00:32:25.598335"], ["id", 1]]
12812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12813
+  (0.8ms) rollback transaction
12814
+  (0.2ms) begin transaction
12815
+ ----------------------------------------------------------------------
12816
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
12817
+ ----------------------------------------------------------------------
12818
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.601834') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12819
+  (0.1ms) SAVEPOINT active_record_1
12820
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.604624') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12821
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "WVd1BShyRMBSRnczEyuA"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.603377"], ["updated_at", "2019-07-04 00:32:25.605765"], ["created_at", "2019-07-04 00:32:25.605765"]]
12822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12823
+  (0.1ms) SAVEPOINT active_record_1
12824
+ Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.608631"], ["accepted_at", "2019-07-04 00:32:25.608631"], ["id", 1]]
12825
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12826
+  (0.6ms) rollback transaction
12827
+  (0.1ms) begin transaction
12828
+ ----------------------------------------------
12829
+ ProposalTest: test_should_return_all_arguments
12830
+ ----------------------------------------------
12831
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.613431') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12832
+  (0.1ms) SAVEPOINT active_record_1
12833
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.615740') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12834
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "zYBZqn9Reeexv5vXZvXZ"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:32:25.614788"], ["updated_at", "2019-07-04 00:32:25.616986"], ["created_at", "2019-07-04 00:32:25.616986"]]
12835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12836
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "zYBZqn9Reeexv5vXZvXZ"], ["LIMIT", 1]]
12837
+  (0.8ms) rollback transaction
12838
+  (0.1ms) begin transaction
12839
+ -------------------------------------------------------
12840
+ ProposalTest: test_should_return_token_from_to_s_method
12841
+ -------------------------------------------------------
12842
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.625778') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12843
+  (0.1ms) SAVEPOINT active_record_1
12844
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.629211') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12845
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xpQ35oxJYRrXzxRpy3rj"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.627849"], ["updated_at", "2019-07-04 00:32:25.630359"], ["created_at", "2019-07-04 00:32:25.630359"]]
12846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12847
+  (1.0ms) rollback transaction
12848
+  (0.1ms) begin transaction
12849
+ ---------------------------------------------------------
12850
+ ProposalTest: test_should_validate_arguments_with_symbols
12851
+ ---------------------------------------------------------
12852
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.634611') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12853
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.636930') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12854
+  (0.1ms) rollback transaction
12855
+  (0.1ms) begin transaction
12856
+ ----------------------------------------------------------------
12857
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
12858
+ ----------------------------------------------------------------
12859
+  (0.1ms) SAVEPOINT active_record_1
12860
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.643634') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12861
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "cjRsAHUX2s5eksvSAyLJ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:32:25.643142"], ["updated_at", "2019-07-04 00:32:25.644698"], ["created_at", "2019-07-04 00:32:25.644698"]]
12862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12863
+  (0.1ms) SAVEPOINT active_record_1
12864
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.647049') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12865
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12866
+  (0.8ms) rollback transaction
12867
+  (0.1ms) begin transaction
12868
+ -----------------------------------------------------------
12869
+ ProposalTest: test_should_not_return_proposal_action_invite
12870
+ -----------------------------------------------------------
12871
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.650111') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12872
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.651926') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12873
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12874
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.653853') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12875
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12876
+  (0.1ms) rollback transaction
12877
+  (0.1ms) begin transaction
12878
+ -------------------------------------------------
12879
+ ProposalTest: test_should_respond_to_the_resource
12880
+ -------------------------------------------------
12881
+  (0.1ms) SAVEPOINT active_record_1
12882
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.656944"], ["updated_at", "2019-07-04 00:32:25.656944"]]
12883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12884
+  (0.1ms) SAVEPOINT active_record_1
12885
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.659062"], ["updated_at", "2019-07-04 00:32:25.659062"]]
12886
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12887
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.660880') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12888
+  (0.7ms) rollback transaction
12889
+  (0.1ms) begin transaction
12890
+ ---------------------------------------------------------------------
12891
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
12892
+ ---------------------------------------------------------------------
12893
+  (0.1ms) SAVEPOINT active_record_1
12894
+ Project Create (1.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.665596"], ["updated_at", "2019-07-04 00:32:25.665596"]]
12895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12896
+  (0.1ms) SAVEPOINT active_record_1
12897
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.668516"], ["updated_at", "2019-07-04 00:32:25.668516"]]
12898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12899
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.670025') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12900
+  (0.1ms) SAVEPOINT active_record_1
12901
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.672210') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12902
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "GsbxGGzrsYDRTwXSyos7"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.671260"], ["updated_at", "2019-07-04 00:32:25.673244"], ["created_at", "2019-07-04 00:32:25.673244"]]
12903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12904
+  (0.1ms) SAVEPOINT active_record_1
12905
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.674974"], ["accepted_at", "2019-07-04 00:32:25.674974"], ["id", 1]]
12906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12907
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.676415') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12908
+  (0.1ms) SAVEPOINT active_record_1
12909
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.680052') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12910
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "S2qwy9gqvVMBxsxYE9oL"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.678202"], ["updated_at", "2019-07-04 00:32:25.681548"], ["created_at", "2019-07-04 00:32:25.681548"]]
12911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12912
+  (0.6ms) rollback transaction
12913
+  (0.1ms) begin transaction
12914
+ -----------------------------------------------------------------------
12915
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
12916
+ -----------------------------------------------------------------------
12917
+  (0.1ms) SAVEPOINT active_record_1
12918
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.685628"], ["updated_at", "2019-07-04 00:32:25.685628"]]
12919
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12920
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.687295') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12921
+  (0.1ms) SAVEPOINT active_record_1
12922
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.689568') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12923
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "TqBVY4yYxgytsQEdGohD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.688560"], ["updated_at", "2019-07-04 00:32:25.690480"], ["created_at", "2019-07-04 00:32:25.690480"]]
12924
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12925
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.692336') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12926
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12927
+  (1.4ms) rollback transaction
12928
+  (0.1ms) begin transaction
12929
+ -------------------------------------------
12930
+ ProposalTest: test_should_set_reminded_safe
12931
+ -------------------------------------------
12932
+  (0.1ms) SAVEPOINT active_record_1
12933
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.702557"], ["updated_at", "2019-07-04 00:32:25.702557"]]
12934
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12935
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.705808') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12936
+  (0.1ms) SAVEPOINT active_record_1
12937
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.710693') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12938
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "58DrW7qzVvardyKjtV2g"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.707827"], ["updated_at", "2019-07-04 00:32:25.712479"], ["created_at", "2019-07-04 00:32:25.712479"]]
12939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12940
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.714187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12941
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12942
+  (0.1ms) SAVEPOINT active_record_1
12943
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.716309"], ["reminded_at", "2019-07-04 00:32:25.716309"], ["id", 1]]
12944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12945
+  (0.5ms) rollback transaction
12946
+  (0.1ms) begin transaction
12947
+ ------------------------------------------------------
12948
+ ProposalTest: test_should_not_return_proposal_instance
12949
+ ------------------------------------------------------
12950
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.719313') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12951
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12952
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
12953
+  (0.1ms) rollback transaction
12954
+  (0.0ms) begin transaction
12955
+ --------------------------------------------------
12956
+ ProposalTest: test_should_find_and_accept_proposal
12957
+ --------------------------------------------------
12958
+  (0.1ms) SAVEPOINT active_record_1
12959
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.723505"], ["updated_at", "2019-07-04 00:32:25.723505"]]
12960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12961
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.725017') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12962
+  (0.1ms) SAVEPOINT active_record_1
12963
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.729072') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12964
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gpxPybYwzMsig7fs9p4L"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.726548"], ["updated_at", "2019-07-04 00:32:25.730837"], ["created_at", "2019-07-04 00:32:25.730837"]]
12965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12966
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "gpxPybYwzMsig7fs9p4L"], ["LIMIT", 1]]
12967
+  (0.1ms) SAVEPOINT active_record_1
12968
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.735493"], ["accepted_at", "2019-07-04 00:32:25.735493"], ["id", 1]]
12969
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12970
+  (0.7ms) rollback transaction
12971
+  (0.1ms) begin transaction
12972
+ ----------------------------------------------------------
12973
+ ProposalTest: test_should_not_return_no_action_if_accepted
12974
+ ----------------------------------------------------------
12975
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.739084') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12976
+  (0.1ms) SAVEPOINT active_record_1
12977
+ Proposal::Token Exists (0.6ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.756150') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
12978
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "AzvxcYUyDJQA2py5BQHV"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.752754"], ["updated_at", "2019-07-04 00:32:25.758444"], ["created_at", "2019-07-04 00:32:25.758444"]]
12979
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12980
+  (0.1ms) SAVEPOINT active_record_1
12981
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.761673"], ["accepted_at", "2019-07-04 00:32:25.761673"], ["id", 1]]
12982
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12983
+  (0.8ms) rollback transaction
12984
+  (0.1ms) begin transaction
12985
+ ----------------------------------------------------------------
12986
+ ProposalTest: test_should_return_proposals_for_resource_instance
12987
+ ----------------------------------------------------------------
12988
+  (0.1ms) SAVEPOINT active_record_1
12989
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.765569"], ["updated_at", "2019-07-04 00:32:25.765569"]]
12990
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12991
+  (0.1ms) SAVEPOINT active_record_1
12992
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.768045"], ["updated_at", "2019-07-04 00:32:25.768045"]]
12993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12994
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.768926') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12995
+  (0.1ms) SAVEPOINT active_record_1
12996
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.772742') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
12997
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "gvx3UTBfdSpq6jBCRwZ1"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:32:25.771272"], ["updated_at", "2019-07-04 00:32:25.773977"], ["created_at", "2019-07-04 00:32:25.773977"]]
12998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12999
+ 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]]
13000
+  (0.7ms) rollback transaction
13001
+  (0.1ms) begin transaction
13002
+ --------------------------------------------------------
13003
+ ProposalTest: test_should_validate_arguments_with_symbol
13004
+ --------------------------------------------------------
13005
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.778251') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13006
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.780024') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13007
+  (0.1ms) rollback transaction
13008
+  (0.3ms) begin transaction
13009
+ -----------------------------------------------------------
13010
+ ProposalTest: test_should_not_return_proposal_action_notify
13011
+ -----------------------------------------------------------
13012
+  (0.1ms) SAVEPOINT active_record_1
13013
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.784173"], ["updated_at", "2019-07-04 00:32:25.784173"]]
13014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13015
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.786304') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13016
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.789378') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13017
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13018
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.791819') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13019
+  (0.6ms) rollback transaction
13020
+  (0.1ms) begin transaction
13021
+ --------------------------------------------------
13022
+ ProposalTest: test_should_respond_to_the_recipient
13023
+ --------------------------------------------------
13024
+  (0.1ms) SAVEPOINT active_record_1
13025
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.795309"], ["updated_at", "2019-07-04 00:32:25.795309"]]
13026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13027
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.796549') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13028
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13029
+  (0.6ms) rollback transaction
13030
+  (0.1ms) begin transaction
13031
+ ------------------------
13032
+ ProposalTest: test_truth
13033
+ ------------------------
13034
+  (0.1ms) rollback transaction
13035
+  (0.1ms) begin transaction
13036
+ -------------------------------------------------------
13037
+ ProposalTest: test_should_return_all_proposals_for_type
13038
+ -------------------------------------------------------
13039
+ Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.803061') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13040
+  (0.1ms) SAVEPOINT active_record_1
13041
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.806187') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13042
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "qH5XNaGJB5R6vqKhby3K"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.805155"], ["updated_at", "2019-07-04 00:32:25.807150"], ["created_at", "2019-07-04 00:32:25.807150"]]
13043
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13044
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
13045
+  (0.7ms) rollback transaction
13046
+  (0.1ms) begin transaction
13047
+ ---------------------------------------------
13048
+ ProposalTest: test_should_return_the_resource
13049
+ ---------------------------------------------
13050
+  (0.1ms) SAVEPOINT active_record_1
13051
+ Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:32:25.812448"], ["updated_at", "2019-07-04 00:32:25.812448"]]
13052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13053
+ Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.814233') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13054
+  (1.9ms) rollback transaction
13055
+  (0.1ms) begin transaction
13056
+ -----------------------------------------------------------
13057
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
13058
+ -----------------------------------------------------------
13059
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.821637') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13060
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.825001') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13061
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13062
+  (0.1ms) rollback transaction
13063
+  (0.1ms) begin transaction
13064
+ -----------------------------------------------------
13065
+ ProposalTest: test_should_create_valid_proposal_token
13066
+ -----------------------------------------------------
13067
+ Proposal::Token Load (0.9ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.828996') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13068
+  (0.3ms) SAVEPOINT active_record_1
13069
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.834650') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13070
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "7Zj1sdfJj4VjtUHcKcja"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.831186"], ["updated_at", "2019-07-04 00:32:25.836238"], ["created_at", "2019-07-04 00:32:25.836238"]]
13071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13072
+  (0.7ms) rollback transaction
13073
+  (0.1ms) begin transaction
13074
+ --------------------------------------------
13075
+ ProposalTest: test_user_should_have_proposal
13076
+ --------------------------------------------
13077
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.840173') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13078
+  (0.1ms) rollback transaction
13079
+  (0.2ms) begin transaction
13080
+ --------------------------------------------------------
13081
+ ProposalTest: test_should_validate_arguments_with_a_proc
13082
+ --------------------------------------------------------
13083
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.842826') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13084
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.844961') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13085
+  (0.0ms) rollback transaction
13086
+  (0.0ms) begin transaction
13087
+ -----------------------------------------------------------------
13088
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
13089
+ -----------------------------------------------------------------
13090
+ Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.846680') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13091
+  (0.3ms) SAVEPOINT active_record_1
13092
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.850865') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13093
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ASF1pDaHXodtqJGyiHd5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:32:25.848959"], ["updated_at", "2019-07-04 00:32:25.852024"], ["created_at", "2019-07-04 00:32:25.852024"]]
13094
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13095
+  (0.1ms) SAVEPOINT active_record_1
13096
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:32:25.854621"], ["accepted_at", "2019-07-04 00:32:25.854621"], ["id", 1]]
13097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13098
+  (0.6ms) rollback transaction
13099
+  (0.0ms) begin transaction
13100
+ ----------------------------------------------------------------
13101
+ ProposalTest: test_should_return_proposals_for_proposer_instance
13102
+ ----------------------------------------------------------------
13103
+  (0.1ms) SAVEPOINT active_record_1
13104
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:32:25.857908"], ["updated_at", "2019-07-04 00:32:25.857908"]]
13105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13106
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.859987') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13107
+  (0.1ms) SAVEPOINT active_record_1
13108
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:32:25.862237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13109
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "biRLXaThfsxP3rp2zZeX"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:32:25.861196"], ["updated_at", "2019-07-04 00:32:25.864284"], ["created_at", "2019-07-04 00:32:25.864284"]]
13110
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13111
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]
13112
+  (0.7ms) rollback transaction
13113
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13114
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
13115
+  (0.1ms) begin transaction
13116
+  (0.0ms) commit transaction
13117
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13118
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13119
+  (0.1ms) begin transaction
13120
+ -----------------------------------------------------------
13121
+ ProposalTest: test_should_not_return_proposal_action_invite
13122
+ -----------------------------------------------------------
13123
+ Proposal::Token Load (0.7ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.559339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13124
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.591590') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13125
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13126
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.595311') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13127
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13128
+  (0.1ms) rollback transaction
13129
+  (0.1ms) begin transaction
13130
+ ----------------------------------------------------------------
13131
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
13132
+ ----------------------------------------------------------------
13133
+  (0.1ms) SAVEPOINT active_record_1
13134
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.599840') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13135
+ Proposal::Token Create (1.9ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jK2cY4TD5sUHczgas1aK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:33:16.599308"], ["updated_at", "2019-07-04 00:33:16.600866"], ["created_at", "2019-07-04 00:33:16.600866"]]
13136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13137
+  (0.0ms) SAVEPOINT active_record_1
13138
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.604749') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13139
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
13140
+  (0.5ms) rollback transaction
13141
+  (0.1ms) begin transaction
13142
+ ---------------------------------------------
13143
+ ProposalTest: test_should_return_the_resource
13144
+ ---------------------------------------------
13145
+  (0.1ms) SAVEPOINT active_record_1
13146
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.613480"], ["updated_at", "2019-07-04 00:33:16.613480"]]
13147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13148
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.616006') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13149
+  (0.8ms) rollback transaction
13150
+  (0.1ms) begin transaction
13151
+ --------------------------------------------
13152
+ ProposalTest: test_user_should_have_proposal
13153
+ --------------------------------------------
13154
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.620398') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13155
+  (0.1ms) rollback transaction
13156
+  (0.1ms) begin transaction
13157
+ --------------------------------------------------------
13158
+ ProposalTest: test_should_validate_arguments_with_symbol
13159
+ --------------------------------------------------------
13160
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.622989') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13161
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.625665') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13162
+  (0.2ms) rollback transaction
13163
+  (0.1ms) begin transaction
13164
+ ----------------------------------------------------------------
13165
+ ProposalTest: test_should_return_proposals_for_resource_instance
13166
+ ----------------------------------------------------------------
13167
+  (0.1ms) SAVEPOINT active_record_1
13168
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.635624"], ["updated_at", "2019-07-04 00:33:16.635624"]]
13169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13170
+  (0.1ms) SAVEPOINT active_record_1
13171
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.637678"], ["updated_at", "2019-07-04 00:33:16.637678"]]
13172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13173
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.638799') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13174
+  (0.1ms) SAVEPOINT active_record_1
13175
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.641042') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13176
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "Z36VHjGwycTQw1fAKJFr"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.639905"], ["updated_at", "2019-07-04 00:33:16.642512"], ["created_at", "2019-07-04 00:33:16.642512"]]
13177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13178
+ 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]]
13179
+  (1.0ms) rollback transaction
13180
+  (0.1ms) begin transaction
13181
+ ---------------------------------------------------------
13182
+ ProposalTest: test_should_validate_arguments_with_symbols
13183
+ ---------------------------------------------------------
13184
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.649209') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13185
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.651241') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13186
+  (0.0ms) rollback transaction
13187
+  (0.1ms) begin transaction
13188
+ -------------------------------------------------------
13189
+ ProposalTest: test_should_return_all_proposals_for_type
13190
+ -------------------------------------------------------
13191
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.653245') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13192
+  (0.1ms) SAVEPOINT active_record_1
13193
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.655204') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13194
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "D8AFsqzhakhJU56LPsoc"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.654344"], ["updated_at", "2019-07-04 00:33:16.656445"], ["created_at", "2019-07-04 00:33:16.656445"]]
13195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13196
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
13197
+  (0.8ms) rollback transaction
13198
+  (0.1ms) begin transaction
13199
+ ----------------------------------------------------------------
13200
+ ProposalTest: test_should_return_proposals_for_proposer_instance
13201
+ ----------------------------------------------------------------
13202
+  (0.1ms) SAVEPOINT active_record_1
13203
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.662677"], ["updated_at", "2019-07-04 00:33:16.662677"]]
13204
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13205
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.664872') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13206
+  (0.1ms) SAVEPOINT active_record_1
13207
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.668040') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13208
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "zrCQpjswHac3sacqbtX1"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:33:16.666368"], ["updated_at", "2019-07-04 00:33:16.669279"], ["created_at", "2019-07-04 00:33:16.669279"]]
13209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13210
+ 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]]
13211
+  (0.6ms) rollback transaction
13212
+  (0.1ms) begin transaction
13213
+ ------------------------------------------------------------
13214
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
13215
+ ------------------------------------------------------------
13216
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.673363') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13217
+  (0.1ms) SAVEPOINT active_record_1
13218
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.676136') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13219
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "uPdM3Kqe7Bnq3FUzUM5a"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:33:16.674835"], ["updated_at", "2019-07-04 00:33:16.677339"], ["created_at", "2019-07-04 00:33:16.677339"]]
13220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13221
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "uPdM3Kqe7Bnq3FUzUM5a"], ["LIMIT", 1]]
13222
+  (0.7ms) rollback transaction
13223
+  (0.1ms) begin transaction
13224
+ ----------------------------------------------------------
13225
+ ProposalTest: test_should_not_return_no_action_if_accepted
13226
+ ----------------------------------------------------------
13227
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.684856') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13228
+  (0.1ms) SAVEPOINT active_record_1
13229
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.687235') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13230
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "jtfizRdsbHyzqFaCtskt"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.686195"], ["updated_at", "2019-07-04 00:33:16.688266"], ["created_at", "2019-07-04 00:33:16.688266"]]
13231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13232
+  (0.0ms) SAVEPOINT active_record_1
13233
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.690140"], ["accepted_at", "2019-07-04 00:33:16.690140"], ["id", 1]]
13234
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13235
+  (0.8ms) rollback transaction
13236
+  (0.1ms) begin transaction
13237
+ -----------------------------------------------------------
13238
+ ProposalTest: test_should_not_return_proposal_action_notify
13239
+ -----------------------------------------------------------
13240
+  (0.1ms) SAVEPOINT active_record_1
13241
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.695253"], ["updated_at", "2019-07-04 00:33:16.695253"]]
13242
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13243
+ Proposal::Token Load (0.6ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.697644') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13244
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.699971') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13246
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.702482') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13247
+  (0.6ms) rollback transaction
13248
+  (0.1ms) begin transaction
13249
+ ------------------------------------------------------
13250
+ ProposalTest: test_should_not_return_proposal_instance
13251
+ ------------------------------------------------------
13252
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.705270') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13253
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13254
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13255
+  (0.1ms) rollback transaction
13256
+  (0.1ms) begin transaction
13257
+ ----------------------------------------------------------------
13258
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
13259
+ ----------------------------------------------------------------
13260
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.710353') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13261
+  (0.1ms) SAVEPOINT active_record_1
13262
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.712697') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13263
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "XjCrcMxy5rNAYzgi9Uxd"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.711663"], ["updated_at", "2019-07-04 00:33:16.713703"], ["created_at", "2019-07-04 00:33:16.713703"]]
13264
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13265
+  (1.5ms) rollback transaction
13266
+  (0.1ms) begin transaction
13267
+ ---------------------------------------------------------------------
13268
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
13269
+ ---------------------------------------------------------------------
13270
+  (0.1ms) SAVEPOINT active_record_1
13271
+ Project Create (0.6ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.720124"], ["updated_at", "2019-07-04 00:33:16.720124"]]
13272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13273
+  (0.1ms) SAVEPOINT active_record_1
13274
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.722360"], ["updated_at", "2019-07-04 00:33:16.722360"]]
13275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13276
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.723637') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13277
+  (0.1ms) SAVEPOINT active_record_1
13278
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.726733') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13279
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "ZksqHJbjnQ5maL2DtwZ6"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.724920"], ["updated_at", "2019-07-04 00:33:16.728692"], ["created_at", "2019-07-04 00:33:16.728692"]]
13280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13281
+  (0.1ms) SAVEPOINT active_record_1
13282
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.730516"], ["accepted_at", "2019-07-04 00:33:16.730516"], ["id", 1]]
13283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13284
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.731729') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13285
+  (0.2ms) SAVEPOINT active_record_1
13286
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.736152') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13287
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "8pa9b486151h4zmNypKy"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.734271"], ["updated_at", "2019-07-04 00:33:16.737969"], ["created_at", "2019-07-04 00:33:16.737969"]]
13288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13289
+  (0.7ms) rollback transaction
13290
+  (0.1ms) begin transaction
13291
+ -----------------------------------------------------------------
13292
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
13293
+ -----------------------------------------------------------------
13294
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.741429') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13295
+  (0.1ms) SAVEPOINT active_record_1
13296
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.744018') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13297
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "noU8wEA8pdxzvHbyQ6Zx"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.742851"], ["updated_at", "2019-07-04 00:33:16.744880"], ["created_at", "2019-07-04 00:33:16.744880"]]
13298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13299
+  (0.1ms) SAVEPOINT active_record_1
13300
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.746636"], ["accepted_at", "2019-07-04 00:33:16.746636"], ["id", 1]]
13301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13302
+  (0.5ms) rollback transaction
13303
+  (0.1ms) begin transaction
13304
+ -----------------------------------------------------------------------
13305
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
13306
+ -----------------------------------------------------------------------
13307
+  (0.1ms) SAVEPOINT active_record_1
13308
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.749324"], ["updated_at", "2019-07-04 00:33:16.749324"]]
13309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13310
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.750704') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13311
+  (0.1ms) SAVEPOINT active_record_1
13312
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.752347') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13313
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ayiTEuXxYBXVzpSuX27T"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.751616"], ["updated_at", "2019-07-04 00:33:16.753070"], ["created_at", "2019-07-04 00:33:16.753070"]]
13314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13315
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.754157') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13316
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13317
+  (0.5ms) rollback transaction
13318
+  (0.0ms) begin transaction
13319
+ ----------------------------------------------
13320
+ ProposalTest: test_should_return_all_arguments
13321
+ ----------------------------------------------
13322
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.757169') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13323
+  (0.1ms) SAVEPOINT active_record_1
13324
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.759543') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13325
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "W8fu73r1x9NgyaexAmfB"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:33:16.758552"], ["updated_at", "2019-07-04 00:33:16.760694"], ["created_at", "2019-07-04 00:33:16.760694"]]
13326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13327
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "W8fu73r1x9NgyaexAmfB"], ["LIMIT", 1]]
13328
+  (1.1ms) rollback transaction
13329
+  (0.2ms) begin transaction
13330
+ -------------------------------------------------
13331
+ ProposalTest: test_should_respond_to_the_resource
13332
+ -------------------------------------------------
13333
+  (0.1ms) SAVEPOINT active_record_1
13334
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.780975"], ["updated_at", "2019-07-04 00:33:16.780975"]]
13335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13336
+  (0.0ms) SAVEPOINT active_record_1
13337
+ Project Create (0.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.783458"], ["updated_at", "2019-07-04 00:33:16.783458"]]
13338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13339
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.784943') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13340
+  (0.6ms) rollback transaction
13341
+  (0.1ms) begin transaction
13342
+ -----------------------------------------------------------
13343
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
13344
+ -----------------------------------------------------------
13345
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.788114') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13346
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.789900') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13347
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13348
+  (0.1ms) rollback transaction
13349
+  (0.1ms) begin transaction
13350
+ -------------------------------------------------------
13351
+ ProposalTest: test_should_return_token_from_to_s_method
13352
+ -------------------------------------------------------
13353
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.793217') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13354
+  (0.1ms) SAVEPOINT active_record_1
13355
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.795754') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13356
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "2bVhsUcXWgGNWwypyJ5x"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.794598"], ["updated_at", "2019-07-04 00:33:16.797153"], ["created_at", "2019-07-04 00:33:16.797153"]]
13357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13358
+  (0.7ms) rollback transaction
13359
+  (0.2ms) begin transaction
13360
+ -----------------------------------------------------------------
13361
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
13362
+ -----------------------------------------------------------------
13363
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.801455') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13364
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.803735') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13365
+  (0.1ms) rollback transaction
13366
+  (0.0ms) begin transaction
13367
+ ------------------------
13368
+ ProposalTest: test_truth
13369
+ ------------------------
13370
+  (0.0ms) rollback transaction
13371
+  (0.0ms) begin transaction
13372
+ --------------------------------------------------
13373
+ ProposalTest: test_should_return_proposal_instance
13374
+ --------------------------------------------------
13375
+  (0.1ms) SAVEPOINT active_record_1
13376
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.806938"], ["updated_at", "2019-07-04 00:33:16.806938"]]
13377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13378
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.808447') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13379
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13380
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.812064') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13381
+  (0.7ms) rollback transaction
13382
+  (0.1ms) begin transaction
13383
+ --------------------------------------------------
13384
+ ProposalTest: test_should_respond_to_the_recipient
13385
+ --------------------------------------------------
13386
+  (0.3ms) SAVEPOINT active_record_1
13387
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.815958"], ["updated_at", "2019-07-04 00:33:16.815958"]]
13388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13389
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.818093') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13390
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13391
+  (0.5ms) rollback transaction
13392
+  (0.0ms) begin transaction
13393
+ --------------------------------------------------
13394
+ ProposalTest: test_should_find_and_accept_proposal
13395
+ --------------------------------------------------
13396
+  (0.1ms) SAVEPOINT active_record_1
13397
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.822077"], ["updated_at", "2019-07-04 00:33:16.822077"]]
13398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13399
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.823674') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13400
+  (0.1ms) SAVEPOINT active_record_1
13401
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.828785') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13402
+ Proposal::Token Create (3.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "4pULeYaPisBaypjhCMos"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.825567"], ["updated_at", "2019-07-04 00:33:16.831119"], ["created_at", "2019-07-04 00:33:16.831119"]]
13403
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13404
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "4pULeYaPisBaypjhCMos"], ["LIMIT", 1]]
13405
+  (0.1ms) SAVEPOINT active_record_1
13406
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.841485"], ["accepted_at", "2019-07-04 00:33:16.841485"], ["id", 1]]
13407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13408
+  (0.6ms) rollback transaction
13409
+  (0.1ms) begin transaction
13410
+ ----------------------------------------------------------------------
13411
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
13412
+ ----------------------------------------------------------------------
13413
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.844134') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13414
+  (0.1ms) SAVEPOINT active_record_1
13415
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.846465') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13416
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QapYFs5DnAU1ZeJjGYYs"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.845474"], ["updated_at", "2019-07-04 00:33:16.847342"], ["created_at", "2019-07-04 00:33:16.847342"]]
13417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13418
+  (0.0ms) SAVEPOINT active_record_1
13419
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.849133"], ["accepted_at", "2019-07-04 00:33:16.849133"], ["id", 1]]
13420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13421
+  (0.5ms) rollback transaction
13422
+  (0.0ms) begin transaction
13423
+ -----------------------------------------------------
13424
+ ProposalTest: test_should_create_valid_proposal_token
13425
+ -----------------------------------------------------
13426
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.851189') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13427
+  (0.1ms) SAVEPOINT active_record_1
13428
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.852986') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13429
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "rpcvF1WHhXUtPniz23ZW"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.852162"], ["updated_at", "2019-07-04 00:33:16.853755"], ["created_at", "2019-07-04 00:33:16.853755"]]
13430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13431
+  (0.5ms) rollback transaction
13432
+  (0.1ms) begin transaction
13433
+ -------------------------------------------
13434
+ ProposalTest: test_should_set_reminded_safe
13435
+ -------------------------------------------
13436
+  (0.1ms) SAVEPOINT active_record_1
13437
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.857033"], ["updated_at", "2019-07-04 00:33:16.857033"]]
13438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13439
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.858512') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13440
+  (0.1ms) SAVEPOINT active_record_1
13441
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.860471') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13442
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "Es5taaRB54W34sL92J7z"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.859632"], ["updated_at", "2019-07-04 00:33:16.861276"], ["created_at", "2019-07-04 00:33:16.861276"]]
13443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13444
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.863762') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13445
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13446
+  (0.1ms) SAVEPOINT active_record_1
13447
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.867474"], ["reminded_at", "2019-07-04 00:33:16.867474"], ["id", 1]]
13448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13449
+  (0.5ms) rollback transaction
13450
+  (0.1ms) begin transaction
13451
+ ------------------------------------------------------------------
13452
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
13453
+ ------------------------------------------------------------------
13454
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.870382') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13455
+  (0.1ms) SAVEPOINT active_record_1
13456
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.872687') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13457
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "CMNknjmps6npAETZBzmv"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.871711"], ["updated_at", "2019-07-04 00:33:16.874077"], ["created_at", "2019-07-04 00:33:16.874077"]]
13458
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13459
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.876436') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13460
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13461
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13462
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13463
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13465
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13466
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13467
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13468
+  (0.8ms) rollback transaction
13469
+  (0.1ms) begin transaction
13470
+ --------------------------------------------------------
13471
+ ProposalTest: test_should_validate_arguments_with_a_proc
13472
+ --------------------------------------------------------
13473
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.887546') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13474
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.889646') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13475
+  (0.1ms) rollback transaction
13476
+  (0.1ms) begin transaction
13477
+ -------------------------------------------
13478
+ ProposalTest: test_should_accept_a_resource
13479
+ -------------------------------------------
13480
+  (0.1ms) SAVEPOINT active_record_1
13481
+ Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.892072"], ["updated_at", "2019-07-04 00:33:16.892072"]]
13482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13483
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.893865') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13484
+  (0.1ms) SAVEPOINT active_record_1
13485
+ Proposal::Token Exists (0.5ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.896091') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13486
+ Proposal::Token Create (0.5ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "KDHzTQntHQGs7WZHsVyu"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:33:16.895022"], ["updated_at", "2019-07-04 00:33:16.898336"], ["created_at", "2019-07-04 00:33:16.898336"]]
13487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13488
+  (0.1ms) SAVEPOINT active_record_1
13489
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:33:16.901105"], ["updated_at", "2019-07-04 00:33:16.901105"]]
13490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13491
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.902661') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
13492
+  (0.1ms) SAVEPOINT active_record_1
13493
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.904860') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
13494
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "GKjPSUHZV8NiFK1qrKpa"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:33:16.903879"], ["updated_at", "2019-07-04 00:33:16.905872"], ["created_at", "2019-07-04 00:33:16.905872"]]
13495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13496
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.907148') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
13497
+  (0.9ms) rollback transaction
13498
+  (0.2ms) begin transaction
13499
+ -------------------------------------------
13500
+ ProposalTest: test_should_set_reminded_bang
13501
+ -------------------------------------------
13502
+  (0.1ms) SAVEPOINT active_record_1
13503
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:33:16.911234"], ["updated_at", "2019-07-04 00:33:16.911234"]]
13504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13505
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.914052') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13506
+  (0.1ms) SAVEPOINT active_record_1
13507
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.919732') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13508
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "xqNUAzz1YJptNQY1y5fK"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:33:16.917210"], ["updated_at", "2019-07-04 00:33:16.922189"], ["created_at", "2019-07-04 00:33:16.922189"]]
13509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13510
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:33:16.925671') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13512
+  (0.1ms) SAVEPOINT active_record_1
13513
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:33:16.929071"], ["reminded_at", "2019-07-04 00:33:16.929071"], ["id", 1]]
13514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13515
+  (1.0ms) rollback transaction
13516
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13517
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
13518
+  (0.0ms) begin transaction
13519
+  (0.0ms) commit transaction
13520
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13521
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13522
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
13523
+  (0.0ms) begin transaction
13524
+  (0.0ms) commit transaction
13525
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13526
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13527
+  (0.1ms) begin transaction
13528
+ --------------------------------------------------------
13529
+ ProposalTest: test_should_validate_arguments_with_symbol
13530
+ --------------------------------------------------------
13531
+ Proposal::Token Load (1.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.567241') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13532
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.636878') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13533
+  (0.1ms) rollback transaction
13534
+  (0.1ms) begin transaction
13535
+ ---------------------------------------------------------------------
13536
+ ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
13537
+ ---------------------------------------------------------------------
13538
+  (0.1ms) SAVEPOINT active_record_1
13539
+ Project Create (1.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.649297"], ["updated_at", "2019-07-04 00:34:40.649297"]]
13540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13541
+  (0.1ms) SAVEPOINT active_record_1
13542
+ User Create (2.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.656133"], ["updated_at", "2019-07-04 00:34:40.656133"]]
13543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13544
+ Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.663339') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13545
+  (0.1ms) SAVEPOINT active_record_1
13546
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.671423') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13547
+ Proposal::Token Create (7.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "aMya27Xayv15zEdCMqSS"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.667673"], ["updated_at", "2019-07-04 00:34:40.672718"], ["created_at", "2019-07-04 00:34:40.672718"]]
13548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13549
+  (0.1ms) SAVEPOINT active_record_1
13550
+ Proposal::Token Update (0.3ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.687192"], ["accepted_at", "2019-07-04 00:34:40.687192"], ["id", 1]]
13551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13552
+ Proposal::Token Load (1.0ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.689132') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13553
+  (0.1ms) SAVEPOINT active_record_1
13554
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.692518') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13555
+ Proposal::Token Create (0.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "9WUzv8HBbQnEp7zopynU"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.691291"], ["updated_at", "2019-07-04 00:34:40.694019"], ["created_at", "2019-07-04 00:34:40.694019"]]
13556
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13557
+  (0.5ms) rollback transaction
13558
+  (0.4ms) begin transaction
13559
+ ------------------------------------------------------
13560
+ ProposalTest: test_should_not_return_proposal_instance
13561
+ ------------------------------------------------------
13562
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.697155') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13563
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13564
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13565
+  (0.1ms) rollback transaction
13566
+  (0.1ms) begin transaction
13567
+ -------------------------------------------
13568
+ ProposalTest: test_should_accept_a_resource
13569
+ -------------------------------------------
13570
+  (0.1ms) SAVEPOINT active_record_1
13571
+ Project Create (0.5ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.701322"], ["updated_at", "2019-07-04 00:34:40.701322"]]
13572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13573
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.716886') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13574
+  (0.1ms) SAVEPOINT active_record_1
13575
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.721887') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13576
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "8DmTQ9ggNvpB6Mn9Fysz"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.720558"], ["updated_at", "2019-07-04 00:34:40.723473"], ["created_at", "2019-07-04 00:34:40.723473"]]
13577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13578
+  (0.0ms) SAVEPOINT active_record_1
13579
+ Project Create (0.1ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.725131"], ["updated_at", "2019-07-04 00:34:40.725131"]]
13580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13581
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.725885') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
13582
+  (0.1ms) SAVEPOINT active_record_1
13583
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.729501') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
13584
+ Proposal::Token Create (0.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "jxEjF18ivANpTmkSE8pp"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["expires_at", "2019-07-05 00:34:40.728423"], ["updated_at", "2019-07-04 00:34:40.731316"], ["created_at", "2019-07-04 00:34:40.731316"]]
13585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13586
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.733218') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 2], ["LIMIT", 1]]
13587
+  (0.7ms) rollback transaction
13588
+  (0.1ms) begin transaction
13589
+ -----------------------------------------------------------
13590
+ ProposalTest: test_should_not_return_proposal_action_notify
13591
+ -----------------------------------------------------------
13592
+  (0.1ms) SAVEPOINT active_record_1
13593
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.742029"], ["updated_at", "2019-07-04 00:34:40.742029"]]
13594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13595
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.743613') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13596
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.745009') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13597
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13598
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.746885') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13599
+  (0.4ms) rollback transaction
13600
+  (0.2ms) begin transaction
13601
+ ----------------------------------------------------------------
13602
+ ProposalTest: test_should_return_proposals_for_resource_instance
13603
+ ----------------------------------------------------------------
13604
+  (0.1ms) SAVEPOINT active_record_1
13605
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.749790"], ["updated_at", "2019-07-04 00:34:40.749790"]]
13606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13607
+  (0.1ms) SAVEPOINT active_record_1
13608
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.752283"], ["updated_at", "2019-07-04 00:34:40.752283"]]
13609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13610
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.753361') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13611
+  (0.0ms) SAVEPOINT active_record_1
13612
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.754982') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13613
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "resource_type", "resource_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "f69yegaswFmbDs6bwbK7"], ["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["expires_at", "2019-07-05 00:34:40.754257"], ["updated_at", "2019-07-04 00:34:40.756458"], ["created_at", "2019-07-04 00:34:40.756458"]]
13614
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13615
+ Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? [["resource_type", "Project"], ["resource_id", 1]]
13616
+  (0.9ms) rollback transaction
13617
+  (0.1ms) begin transaction
13618
+ --------------------------------------------------
13619
+ ProposalTest: test_should_find_and_accept_proposal
13620
+ --------------------------------------------------
13621
+  (0.1ms) SAVEPOINT active_record_1
13622
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.772052"], ["updated_at", "2019-07-04 00:34:40.772052"]]
13623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13624
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.773229') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13625
+  (0.1ms) SAVEPOINT active_record_1
13626
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.784549') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13627
+ Proposal::Token Create (17.2ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "nAJ6fmuaK8RgCd93FYsD"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.782819"], ["updated_at", "2019-07-04 00:34:40.785850"], ["created_at", "2019-07-04 00:34:40.785850"]]
13628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13629
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "nAJ6fmuaK8RgCd93FYsD"], ["LIMIT", 1]]
13630
+  (0.1ms) SAVEPOINT active_record_1
13631
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.808897"], ["accepted_at", "2019-07-04 00:34:40.808897"], ["id", 1]]
13632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13633
+  (0.7ms) rollback transaction
13634
+  (0.1ms) begin transaction
13635
+ -----------------------------------------------------------------
13636
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted
13637
+ -----------------------------------------------------------------
13638
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.811447') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13639
+  (1.8ms) SAVEPOINT active_record_1
13640
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.815541') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13641
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "aAxtmrdT2eMJ2N4q1P1x"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.812623"], ["updated_at", "2019-07-04 00:34:40.819881"], ["created_at", "2019-07-04 00:34:40.819881"]]
13642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13643
+  (0.1ms) SAVEPOINT active_record_1
13644
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.822245"], ["accepted_at", "2019-07-04 00:34:40.822245"], ["id", 1]]
13645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13646
+  (1.0ms) rollback transaction
13647
+  (0.2ms) begin transaction
13648
+ -------------------------------------------
13649
+ ProposalTest: test_should_set_reminded_bang
13650
+ -------------------------------------------
13651
+  (0.2ms) SAVEPOINT active_record_1
13652
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.826275"], ["updated_at", "2019-07-04 00:34:40.826275"]]
13653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13654
+ Proposal::Token Load (1.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.828054') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13655
+  (1.0ms) SAVEPOINT active_record_1
13656
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.833237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13657
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MYrjZ1MHVfV64qswU4EQ"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.830238"], ["updated_at", "2019-07-04 00:34:40.834501"], ["created_at", "2019-07-04 00:34:40.834501"]]
13658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13659
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.836554') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13660
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13661
+  (0.1ms) SAVEPOINT active_record_1
13662
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.840692"], ["reminded_at", "2019-07-04 00:34:40.840692"], ["id", 1]]
13663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13664
+  (0.8ms) rollback transaction
13665
+  (0.1ms) begin transaction
13666
+ --------------------------------------------------
13667
+ ProposalTest: test_should_return_proposal_instance
13668
+ --------------------------------------------------
13669
+  (0.1ms) SAVEPOINT active_record_1
13670
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.845256"], ["updated_at", "2019-07-04 00:34:40.845256"]]
13671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13672
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.847285') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13673
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13674
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.851059') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13675
+  (0.7ms) rollback transaction
13676
+  (0.1ms) begin transaction
13677
+ -------------------------------------------------------
13678
+ ProposalTest: test_should_return_token_from_to_s_method
13679
+ -------------------------------------------------------
13680
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.854346') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13681
+  (0.1ms) SAVEPOINT active_record_1
13682
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.857457') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13683
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "QRBHevHgbLkCqrqJrDyq"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.855766"], ["updated_at", "2019-07-04 00:34:40.859246"], ["created_at", "2019-07-04 00:34:40.859246"]]
13684
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13685
+  (1.0ms) rollback transaction
13686
+  (0.1ms) begin transaction
13687
+ --------------------------------------------------
13688
+ ProposalTest: test_should_respond_to_the_recipient
13689
+ --------------------------------------------------
13690
+  (0.1ms) SAVEPOINT active_record_1
13691
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.865912"], ["updated_at", "2019-07-04 00:34:40.865912"]]
13692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13693
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.867913') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13694
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13695
+  (0.8ms) rollback transaction
13696
+  (0.1ms) begin transaction
13697
+ -----------------------------------------------------------
13698
+ ProposalTest: test_should_raise_error_if_remind_is_not_true
13699
+ -----------------------------------------------------------
13700
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.872237') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13701
+ Proposal::Token Exists (1.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.874779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13702
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13703
+  (0.1ms) rollback transaction
13704
+  (0.1ms) begin transaction
13705
+ ----------------------------------------------------------------
13706
+ ProposalTest: test_should_return_proposals_for_proposer_instance
13707
+ ----------------------------------------------------------------
13708
+  (0.1ms) SAVEPOINT active_record_1
13709
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.882350"], ["updated_at", "2019-07-04 00:34:40.882350"]]
13710
+  (0.4ms) RELEASE SAVEPOINT active_record_1
13711
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.884670') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13712
+  (0.1ms) SAVEPOINT active_record_1
13713
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.887444') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13714
+ Proposal::Token Create (0.3ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "proposer_type", "proposer_id", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["token", "qrmDWwSH6JoFfEZoNuy9"], ["email", "user@example.com"], ["proposable_type", "User"], ["proposer_type", "User"], ["proposer_id", 1], ["expires_at", "2019-07-05 00:34:40.886058"], ["updated_at", "2019-07-04 00:34:40.888723"], ["created_at", "2019-07-04 00:34:40.888723"]]
13715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13716
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = ? AND "proposal_tokens"."proposer_id" = ? [["proposer_type", "User"], ["proposer_id", 1]]
13717
+  (1.2ms) rollback transaction
13718
+  (0.2ms) begin transaction
13719
+ ------------------------------------------------------------
13720
+ ProposalTest: test_should_return_hash_when_arguments_is_hash
13721
+ ------------------------------------------------------------
13722
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.895368') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13723
+  (0.1ms) SAVEPOINT active_record_1
13724
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.899750') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13725
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "UyBNtTmj3TjP4xascSt6"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n:role: admin\n"], ["expires_at", "2019-07-05 00:34:40.898050"], ["updated_at", "2019-07-04 00:34:40.901173"], ["created_at", "2019-07-04 00:34:40.901173"]]
13726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13727
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "UyBNtTmj3TjP4xascSt6"], ["LIMIT", 1]]
13728
+  (4.8ms) rollback transaction
13729
+  (0.1ms) begin transaction
13730
+ ------------------------------------------------------------------
13731
+ ProposalTest: test_should_have_action_remind_for_invite_(new_user)
13732
+ ------------------------------------------------------------------
13733
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.916411') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13734
+  (0.1ms) SAVEPOINT active_record_1
13735
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.920104') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13736
+ Proposal::Token Create (1.0ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "WqtsTBD9HDJ8YLFkULSr"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.918674"], ["updated_at", "2019-07-04 00:34:40.958749"], ["created_at", "2019-07-04 00:34:40.958749"]]
13737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13738
+ Proposal::Token Load (0.2ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.961172') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13739
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13740
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13741
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13742
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13743
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13744
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13745
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13747
+  (0.7ms) rollback transaction
13748
+  (0.1ms) begin transaction
13749
+ ----------------------------------------------------------------------
13750
+ ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
13751
+ ----------------------------------------------------------------------
13752
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.970236') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13753
+  (0.1ms) SAVEPOINT active_record_1
13754
+ Proposal::Token Exists (5.7ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:40.972903') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13755
+ Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "PtZqPmu1CAYe7w6aYbFe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:40.972076"], ["updated_at", "2019-07-04 00:34:40.979525"], ["created_at", "2019-07-04 00:34:40.979525"]]
13756
+  (2.0ms) RELEASE SAVEPOINT active_record_1
13757
+  (0.1ms) SAVEPOINT active_record_1
13758
+ Proposal::Token Update (0.2ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:40.984702"], ["accepted_at", "2019-07-04 00:34:40.984702"], ["id", 1]]
13759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13760
+  (0.7ms) rollback transaction
13761
+  (0.1ms) begin transaction
13762
+ -------------------------------------------------
13763
+ ProposalTest: test_should_respond_to_the_resource
13764
+ -------------------------------------------------
13765
+  (0.1ms) SAVEPOINT active_record_1
13766
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:40.989844"], ["updated_at", "2019-07-04 00:34:40.989844"]]
13767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13768
+  (0.2ms) SAVEPOINT active_record_1
13769
+ Project Create (0.2ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:40.999617"], ["updated_at", "2019-07-04 00:34:40.999617"]]
13770
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13771
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.002000') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13772
+  (1.0ms) rollback transaction
13773
+  (0.2ms) begin transaction
13774
+ -----------------------------------------------------------------------
13775
+ ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
13776
+ -----------------------------------------------------------------------
13777
+  (0.1ms) SAVEPOINT active_record_1
13778
+ User Create (1.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:41.013351"], ["updated_at", "2019-07-04 00:34:41.013351"]]
13779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13780
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.015950') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13781
+  (0.1ms) SAVEPOINT active_record_1
13782
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.019628') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13783
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "ywgWWXc8pSMjNHvSKvz2"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.017518"], ["updated_at", "2019-07-04 00:34:41.021169"], ["created_at", "2019-07-04 00:34:41.021169"]]
13784
+  (1.2ms) RELEASE SAVEPOINT active_record_1
13785
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.024624') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13786
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13787
+  (1.4ms) rollback transaction
13788
+  (0.1ms) begin transaction
13789
+ ----------------------------------------------------------------
13790
+ ProposalTest: test_should_not_create_a_new_token_if_token_exists
13791
+ ----------------------------------------------------------------
13792
+  (0.1ms) SAVEPOINT active_record_1
13793
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.035654') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13794
+ Proposal::Token Create (0.6ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "W77635ELZsBPvcCzzhgM"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2020-07-04 00:34:41.035103"], ["updated_at", "2019-07-04 00:34:41.036999"], ["created_at", "2019-07-04 00:34:41.036999"]]
13795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13796
+  (0.1ms) SAVEPOINT active_record_1
13797
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.039779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13798
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
13799
+  (1.1ms) rollback transaction
13800
+  (0.2ms) begin transaction
13801
+ ----------------------------------------------
13802
+ ProposalTest: test_should_return_all_arguments
13803
+ ----------------------------------------------
13804
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.048451') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13805
+  (0.1ms) SAVEPOINT active_record_1
13806
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.051074') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13807
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "arguments", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["token", "wsBoreFk5jWcq7EUce2z"], ["email", "user@example.com"], ["proposable_type", "User"], ["arguments", "---\n- admin\n- 1\n"], ["expires_at", "2019-07-05 00:34:41.049966"], ["updated_at", "2019-07-04 00:34:41.051893"], ["created_at", "2019-07-04 00:34:41.051893"]]
13808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13809
+ Proposal::Token Load (0.1ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."token" = ? LIMIT ? [["proposable_type", "User"], ["token", "wsBoreFk5jWcq7EUce2z"], ["LIMIT", 1]]
13810
+  (0.6ms) rollback transaction
13811
+  (0.1ms) begin transaction
13812
+ -----------------------------------------------------------
13813
+ ProposalTest: test_should_not_return_proposal_action_invite
13814
+ -----------------------------------------------------------
13815
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.056183') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13816
+ Proposal::Token Exists (1.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.070779') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13817
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13818
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.079709') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13819
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13820
+  (0.1ms) rollback transaction
13821
+  (0.1ms) begin transaction
13822
+ ------------------------
13823
+ ProposalTest: test_truth
13824
+ ------------------------
13825
+  (0.0ms) rollback transaction
13826
+  (0.1ms) begin transaction
13827
+ --------------------------------------------------------
13828
+ ProposalTest: test_should_validate_arguments_with_a_proc
13829
+ --------------------------------------------------------
13830
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.088141') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13831
+ Proposal::Token Exists (0.1ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.089880') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13832
+  (0.1ms) rollback transaction
13833
+  (0.1ms) begin transaction
13834
+ -------------------------------------------
13835
+ ProposalTest: test_should_set_reminded_safe
13836
+ -------------------------------------------
13837
+  (0.1ms) SAVEPOINT active_record_1
13838
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@example.com"], ["created_at", "2019-07-04 00:34:41.092175"], ["updated_at", "2019-07-04 00:34:41.092175"]]
13839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13840
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.094288') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13841
+  (0.1ms) SAVEPOINT active_record_1
13842
+ Proposal::Token Exists (0.2ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.099067') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13843
+ Proposal::Token Create (0.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "AF3NzVdW7FwCwGZmnrj5"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.097532"], ["updated_at", "2019-07-04 00:34:41.100317"], ["created_at", "2019-07-04 00:34:41.100317"]]
13844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13845
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.103472') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13846
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
13847
+  (0.1ms) SAVEPOINT active_record_1
13848
+ Proposal::Token Update (0.1ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "reminded_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:41.106215"], ["reminded_at", "2019-07-04 00:34:41.106215"], ["id", 1]]
13849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13850
+  (1.1ms) rollback transaction
13851
+  (0.2ms) begin transaction
13852
+ ---------------------------------------------
13853
+ ProposalTest: test_should_return_the_resource
13854
+ ---------------------------------------------
13855
+  (0.1ms) SAVEPOINT active_record_1
13856
+ Project Create (0.7ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2019-07-04 00:34:41.111770"], ["updated_at", "2019-07-04 00:34:41.111770"]]
13857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13858
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.114011') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" = ? AND "proposal_tokens"."resource_id" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["resource_type", "Project"], ["resource_id", 1], ["LIMIT", 1]]
13859
+  (0.6ms) rollback transaction
13860
+  (0.1ms) begin transaction
13861
+ --------------------------------------------
13862
+ ProposalTest: test_user_should_have_proposal
13863
+ --------------------------------------------
13864
+ Proposal::Token Load (0.4ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.119261') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13865
+  (0.1ms) rollback transaction
13866
+  (0.1ms) begin transaction
13867
+ ---------------------------------------------------------
13868
+ ProposalTest: test_should_validate_arguments_with_symbols
13869
+ ---------------------------------------------------------
13870
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.123340') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13871
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.128603') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13872
+  (0.1ms) rollback transaction
13873
+  (0.1ms) begin transaction
13874
+ -------------------------------------------------------
13875
+ ProposalTest: test_should_return_all_proposals_for_type
13876
+ -------------------------------------------------------
13877
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.133402') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13878
+  (0.1ms) SAVEPOINT active_record_1
13879
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.137059') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13880
+ Proposal::Token Create (0.7ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "MxsmsNypSxbYmxaQgWyf"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.135380"], ["updated_at", "2019-07-04 00:34:41.138731"], ["created_at", "2019-07-04 00:34:41.138731"]]
13881
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13882
+ Proposal::Token Load (0.3ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = ? [["proposable_type", "User"]]
13883
+  (1.0ms) rollback transaction
13884
+  (0.1ms) begin transaction
13885
+ -----------------------------------------------------
13886
+ ProposalTest: test_should_create_valid_proposal_token
13887
+ -----------------------------------------------------
13888
+ Proposal::Token Load (0.8ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.149381') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13889
+  (0.1ms) SAVEPOINT active_record_1
13890
+ Proposal::Token Exists (0.4ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.153097') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13891
+ Proposal::Token Create (1.1ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "mWFa9HT8tKRC6y58FF76"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.151512"], ["updated_at", "2019-07-04 00:34:41.154391"], ["created_at", "2019-07-04 00:34:41.154391"]]
13892
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13893
+  (0.7ms) rollback transaction
13894
+  (0.1ms) begin transaction
13895
+ ----------------------------------------------------------
13896
+ ProposalTest: test_should_not_return_no_action_if_accepted
13897
+ ----------------------------------------------------------
13898
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.161489') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13899
+  (0.6ms) SAVEPOINT active_record_1
13900
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.166051') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13901
+ Proposal::Token Create (0.8ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "sgyLmxTenNRG91WL3yKo"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.163291"], ["updated_at", "2019-07-04 00:34:41.167603"], ["created_at", "2019-07-04 00:34:41.167603"]]
13902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13903
+  (0.1ms) SAVEPOINT active_record_1
13904
+ Proposal::Token Update (0.4ms) UPDATE "proposal_tokens" SET "updated_at" = ?, "accepted_at" = ? WHERE "proposal_tokens"."id" = ? [["updated_at", "2019-07-04 00:34:41.170537"], ["accepted_at", "2019-07-04 00:34:41.170537"], ["id", 1]]
13905
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13906
+  (1.4ms) rollback transaction
13907
+  (0.2ms) begin transaction
13908
+ ----------------------------------------------------------------
13909
+ ProposalTest: test_should_add_errors_when_not_acceptable_expired
13910
+ ----------------------------------------------------------------
13911
+ Proposal::Token Load (0.5ms) SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.176201') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? ORDER BY "proposal_tokens"."id" ASC LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13912
+  (0.1ms) SAVEPOINT active_record_1
13913
+ Proposal::Token Exists (0.3ms) SELECT 1 AS one FROM "proposal_tokens" WHERE (accepted_at IS NULL) AND (expires_at > '2019-07-04 00:34:41.179664') AND "proposal_tokens"."email" = ? AND "proposal_tokens"."proposable_type" = ? AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL LIMIT ? [["email", "user@example.com"], ["proposable_type", "User"], ["LIMIT", 1]]
13914
+ Proposal::Token Create (2.4ms) INSERT INTO "proposal_tokens" ("token", "email", "proposable_type", "expires_at", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?) [["token", "gzowRVRpqH52pHrztQhe"], ["email", "user@example.com"], ["proposable_type", "User"], ["expires_at", "2019-07-05 00:34:41.178324"], ["updated_at", "2019-07-04 00:34:41.181612"], ["created_at", "2019-07-04 00:34:41.181612"]]
13915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13916
+  (1.1ms) rollback transaction
13917
+  (0.1ms) begin transaction
13918
+ -----------------------------------------------------------------
13919
+ ProposalTest: test_should_validate_arguments_with_symbol_and_args
13920
+ -----------------------------------------------------------------
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
+ 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
+  (0.2ms) rollback transaction