test/stripe/file_test.rb in stripe-4.24.0 vs test/stripe/file_test.rb in stripe-5.0.0
- old
+ new
@@ -50,19 +50,9 @@
)
assert_requested :post, "#{Stripe.uploads_base}/v1/files"
assert file.is_a?(Stripe::File)
end
- should "be creatable with Faraday::UploadIO" do
- file = Stripe::File.create(
- purpose: "dispute_evidence",
- file: Faraday::UploadIO.new(::File.new(__FILE__), nil),
- file_link_data: { create: true }
- )
- assert_requested :post, "#{Stripe.uploads_base}/v1/files"
- assert file.is_a?(Stripe::File)
- end
-
should "be creatable with a string" do
file = Stripe::File.create(
purpose: "dispute_evidence",
file: "my-file-contents",
file_link_data: { create: true }