Skip to content

Commit

Permalink
Updates method name
Browse files Browse the repository at this point in the history
  • Loading branch information
rosschapman committed Nov 9, 2023
1 parent bf846a3 commit d2e0d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/furniture/marketplace/square_order_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "rails_helper"

RSpec.describe Marketplace::Marketplace::SquareOrder do
describe "send_to_seller_dashboard" do
describe "send_order" do
it "will return the correct success data" do
# TODO
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
double(Stripe::Charge, balance_transaction: "btx_2234")
}

let(:square_order) { instance_double(Marketplace::Marketplace::SquareOrder, send_to_seller_dashboard: nil) }
let(:square_order) { instance_double(Marketplace::Marketplace::SquareOrder, send_order: nil) }

before do
allow(Stripe::Webhook).to receive(:construct_event).with(anything, "sig_1234", marketplace.stripe_webhook_endpoint_secret).and_return(stripe_event)
Expand Down Expand Up @@ -88,7 +88,7 @@
context "when Square notifications are not enabled" do
it "does not attempt to transfer the order to seller's Square dashboard" do
call
expect(square_order).not_to(have_received(:send_to_seller_dashboard))
expect(square_order).not_to(have_received(:send_order))
end
end

Expand All @@ -101,7 +101,7 @@
it "attempts to transfer the order to seller's Square dashboard" do
call
expect(Marketplace::Marketplace::SquareOrder).to have_received(:new).with(order)
expect(square_order).to have_received(:send_to_seller_dashboard)
expect(square_order).to have_received(:send_order)
end
end
end
Expand Down

0 comments on commit d2e0d7b

Please sign in to comment.