Skip to content

Commit

Permalink
Adds another expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
rosschapman committed Oct 28, 2023
1 parent ca1b154 commit 81567e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

create_enum :invitation_status, [
"pending",
"sent",
"accepted",
"rejected",
"expired",
"ignored",
"revoked",
"sent",
], force: :cascade

create_enum :membership_status, [
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81567e9

Please sign in to comment.