test/stripe/file_upload_test.rb in stripe-1.17.3 vs test/stripe/file_upload_test.rb in stripe-1.18.0

- old
+ new

@@ -15,7 +15,14 @@ @mock.expects(:get).once.returns(test_response(test_file)) c = Stripe::FileUpload.new("fil_test_file") c.refresh assert_equal 1403047735, c.created end + + should "files should be listable" do + @mock.expects(:get).once.returns(test_response(test_file_array)) + c = Stripe::FileUpload.all.data + assert c.kind_of? Array + assert c[0].kind_of? Stripe::FileUpload + end end end