From 81567e9156bbb826e0fe994cc5b0e38bafb38f1d Mon Sep 17 00:00:00 2001 From: Ross Chapman Date: Fri, 27 Oct 2023 19:23:07 -0700 Subject: [PATCH] Adds another expectation --- db/schema.rb | 6 +++--- .../marketplace/stripe_events_controller_request_spec.rb | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 07591c8d6..9c5b1bd8e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -17,12 +17,12 @@ create_enum :invitation_status, [ "pending", + "sent", "accepted", "rejected", "expired", "ignored", "revoked", - "sent", ], force: :cascade create_enum :membership_status, [ @@ -77,7 +77,7 @@ t.integer "sluggable_id", null: false t.string "sluggable_type", limit: 50 t.string "scope" - t.datetime "created_at", precision: nil + t.datetime "created_at" t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type" t.index ["sluggable_type", "sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_type_and_sluggable_id" @@ -244,7 +244,7 @@ t.string "email", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.boolean "operator", default: false + t.boolean "operator", default: false, null: false t.index ["email"], name: "index_people_on_email", unique: true end diff --git a/spec/furniture/marketplace/stripe_events_controller_request_spec.rb b/spec/furniture/marketplace/stripe_events_controller_request_spec.rb index a6b03f9b4..8d62cc56a 100644 --- a/spec/furniture/marketplace/stripe_events_controller_request_spec.rb +++ b/spec/furniture/marketplace/stripe_events_controller_request_spec.rb @@ -100,6 +100,7 @@ it "attempts to transfer the order to seller's Square dashboard" do call + expect(Marketplace::SquareOrder).to have_received(:new).with(order) expect(square_order).to have_received(:send_to_square_seller_dashboard) end end