test/stripe/api_resource_test.rb in stripe-3.25.0 vs test/stripe/api_resource_test.rb in stripe-3.26.0

- old
+ new

@@ -84,11 +84,11 @@ should "preserve expand across refreshes" do stub_request(:get, "#{Stripe.api_base}/v1/charges/ch_123") .with(query: { "expand" => ["customer"] }) .to_return(body: JSON.generate(charge_fixture)) - ch = Stripe::Charge.retrieve(id: "ch_123", expand: :customer) + ch = Stripe::Charge.retrieve(id: "ch_123", expand: [:customer]) ch.refresh end should "send expand when fetching through ListObject" do stub_request(:get, "#{Stripe.api_base}/v1/customers/cus_123") @@ -97,11 +97,11 @@ stub_request(:get, "#{Stripe.api_base}/v1/customers/cus_123/sources/cc_test_card") .with(query: { "expand" => ["customer"] }) .to_return(body: JSON.generate(customer_fixture)) customer = Stripe::Customer.retrieve("cus_123") - customer.sources.retrieve(id: "cc_test_card", expand: :customer) + customer.sources.retrieve(id: "cc_test_card", expand: [:customer]) end context "when specifying per-object credentials" do context "with no global API key set" do should "use the per-object credential when creating" do @@ -158,10 +158,10 @@ should "construct URL properly with base query parameters" do stub_request(:get, "#{Stripe.api_base}/v1/charges") .with(query: { customer: "cus_123" }) .to_return(body: JSON.generate(data: [charge_fixture], url: "/v1/charges")) - charges = Stripe::Invoice.list(customer: "cus_123") + charges = Stripe::Charge.list(customer: "cus_123") stub_request(:get, "#{Stripe.api_base}/v1/charges") .with(query: { customer: "cus_123", created: "123" }) .to_return(body: JSON.generate(data: [charge_fixture], url: "/v1/charges"))