Skip to content

Commit

Permalink
fix admin subscription controller specs
Browse files Browse the repository at this point in the history
  • Loading branch information
oblakeerickson committed May 2, 2024
1 parent b85c59d commit 53f75a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/admin/subscriptions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
it "gets the subscriptions and products" do
::Stripe::Subscription
.expects(:list)
.with(expand: ["data.plan.product"], limit: 10, starting_after: nil)
.with(expand: ["data.plan.product"], limit: 10, starting_after: nil, status: "all")
.returns(has_more: false, data: [{ id: "sub_12345" }, { id: "sub_nope" }])
get "/s/admin/subscriptions.json"
subscriptions = response.parsed_body["data"][0]["id"]
Expand All @@ -60,7 +60,7 @@
it "handles starting at a different point in the set" do
::Stripe::Subscription
.expects(:list)
.with(expand: ["data.plan.product"], limit: 10, starting_after: "sub_nope")
.with(expand: ["data.plan.product"], limit: 10, starting_after: "sub_nope", status: "all")
.returns(has_more: false, data: [{ id: "sub_77777" }, { id: "sub_yepnoep" }])
get "/s/admin/subscriptions.json", params: { last_record: "sub_nope" }
subscriptions = response.parsed_body["data"][0]["id"]
Expand Down

0 comments on commit 53f75a1

Please sign in to comment.