From 1255b44a8fb90d5034f067f835fa7b5381a58a4a Mon Sep 17 00:00:00 2001 From: fern-support <126544928+fern-support@users.noreply.github.com> Date: Fri, 5 Dec 2025 10:23:27 -0500 Subject: [PATCH 1/2] temp --- .../integration/client_tests/test_cash_drawers.rb | 0 .../integration/client_tests/test_catalog.rb | 0 .../integration/client_tests/test_customers.rb | 0 .../client_tests/test_customers_groups.rb | 0 .../client_tests/test_customers_segments.rb | 0 .../integration/client_tests/test_devices.rb | 0 .../integration/client_tests/test_inventory.rb | 0 .../integration/client_tests/test_locations.rb | 0 .../integration/client_tests/test_merchants.rb | 0 .../integration/client_tests/test_mobile.rb | 0 .../integration/client_tests/test_orders.rb | 0 .../integration/client_tests/test_payments.rb | 0 .../integration/client_tests/test_refunds.rb | 0 .../integration/client_tests/test_team_members.rb | 0 .../integration/client_tests/test_terminal.rb | 0 .../integration/integration_test_base.rb | 0 .../integration/testdata/image.jpeg | Bin .../internal/multipart/test_form_data.rb | 0 .../{square => custom}/internal/types/test_array.rb | 0 .../internal/types/test_boolean.rb | 0 test/{square => custom}/internal/types/test_enum.rb | 0 test/{square => custom}/internal/types/test_hash.rb | 0 .../{square => custom}/internal/types/test_model.rb | 0 .../{square => custom}/internal/types/test_union.rb | 0 .../{square => custom}/internal/types/test_utils.rb | 0 test/{ => custom}/test_helper.rb | 2 +- 26 files changed, 1 insertion(+), 1 deletion(-) rename test/{square => custom}/integration/client_tests/test_cash_drawers.rb (100%) rename test/{square => custom}/integration/client_tests/test_catalog.rb (100%) rename test/{square => custom}/integration/client_tests/test_customers.rb (100%) rename test/{square => custom}/integration/client_tests/test_customers_groups.rb (100%) rename test/{square => custom}/integration/client_tests/test_customers_segments.rb (100%) rename test/{square => custom}/integration/client_tests/test_devices.rb (100%) rename test/{square => custom}/integration/client_tests/test_inventory.rb (100%) rename test/{square => custom}/integration/client_tests/test_locations.rb (100%) rename test/{square => custom}/integration/client_tests/test_merchants.rb (100%) rename test/{square => custom}/integration/client_tests/test_mobile.rb (100%) rename test/{square => custom}/integration/client_tests/test_orders.rb (100%) rename test/{square => custom}/integration/client_tests/test_payments.rb (100%) rename test/{square => custom}/integration/client_tests/test_refunds.rb (100%) rename test/{square => custom}/integration/client_tests/test_team_members.rb (100%) rename test/{square => custom}/integration/client_tests/test_terminal.rb (100%) rename test/{square => custom}/integration/integration_test_base.rb (100%) rename test/{square => custom}/integration/testdata/image.jpeg (100%) rename test/{square => custom}/internal/multipart/test_form_data.rb (100%) rename test/{square => custom}/internal/types/test_array.rb (100%) rename test/{square => custom}/internal/types/test_boolean.rb (100%) rename test/{square => custom}/internal/types/test_enum.rb (100%) rename test/{square => custom}/internal/types/test_hash.rb (100%) rename test/{square => custom}/internal/types/test_model.rb (100%) rename test/{square => custom}/internal/types/test_union.rb (100%) rename test/{square => custom}/internal/types/test_utils.rb (100%) rename test/{ => custom}/test_helper.rb (98%) diff --git a/test/square/integration/client_tests/test_cash_drawers.rb b/test/custom/integration/client_tests/test_cash_drawers.rb similarity index 100% rename from test/square/integration/client_tests/test_cash_drawers.rb rename to test/custom/integration/client_tests/test_cash_drawers.rb diff --git a/test/square/integration/client_tests/test_catalog.rb b/test/custom/integration/client_tests/test_catalog.rb similarity index 100% rename from test/square/integration/client_tests/test_catalog.rb rename to test/custom/integration/client_tests/test_catalog.rb diff --git a/test/square/integration/client_tests/test_customers.rb b/test/custom/integration/client_tests/test_customers.rb similarity index 100% rename from test/square/integration/client_tests/test_customers.rb rename to test/custom/integration/client_tests/test_customers.rb diff --git a/test/square/integration/client_tests/test_customers_groups.rb b/test/custom/integration/client_tests/test_customers_groups.rb similarity index 100% rename from test/square/integration/client_tests/test_customers_groups.rb rename to test/custom/integration/client_tests/test_customers_groups.rb diff --git a/test/square/integration/client_tests/test_customers_segments.rb b/test/custom/integration/client_tests/test_customers_segments.rb similarity index 100% rename from test/square/integration/client_tests/test_customers_segments.rb rename to test/custom/integration/client_tests/test_customers_segments.rb diff --git a/test/square/integration/client_tests/test_devices.rb b/test/custom/integration/client_tests/test_devices.rb similarity index 100% rename from test/square/integration/client_tests/test_devices.rb rename to test/custom/integration/client_tests/test_devices.rb diff --git a/test/square/integration/client_tests/test_inventory.rb b/test/custom/integration/client_tests/test_inventory.rb similarity index 100% rename from test/square/integration/client_tests/test_inventory.rb rename to test/custom/integration/client_tests/test_inventory.rb diff --git a/test/square/integration/client_tests/test_locations.rb b/test/custom/integration/client_tests/test_locations.rb similarity index 100% rename from test/square/integration/client_tests/test_locations.rb rename to test/custom/integration/client_tests/test_locations.rb diff --git a/test/square/integration/client_tests/test_merchants.rb b/test/custom/integration/client_tests/test_merchants.rb similarity index 100% rename from test/square/integration/client_tests/test_merchants.rb rename to test/custom/integration/client_tests/test_merchants.rb diff --git a/test/square/integration/client_tests/test_mobile.rb b/test/custom/integration/client_tests/test_mobile.rb similarity index 100% rename from test/square/integration/client_tests/test_mobile.rb rename to test/custom/integration/client_tests/test_mobile.rb diff --git a/test/square/integration/client_tests/test_orders.rb b/test/custom/integration/client_tests/test_orders.rb similarity index 100% rename from test/square/integration/client_tests/test_orders.rb rename to test/custom/integration/client_tests/test_orders.rb diff --git a/test/square/integration/client_tests/test_payments.rb b/test/custom/integration/client_tests/test_payments.rb similarity index 100% rename from test/square/integration/client_tests/test_payments.rb rename to test/custom/integration/client_tests/test_payments.rb diff --git a/test/square/integration/client_tests/test_refunds.rb b/test/custom/integration/client_tests/test_refunds.rb similarity index 100% rename from test/square/integration/client_tests/test_refunds.rb rename to test/custom/integration/client_tests/test_refunds.rb diff --git a/test/square/integration/client_tests/test_team_members.rb b/test/custom/integration/client_tests/test_team_members.rb similarity index 100% rename from test/square/integration/client_tests/test_team_members.rb rename to test/custom/integration/client_tests/test_team_members.rb diff --git a/test/square/integration/client_tests/test_terminal.rb b/test/custom/integration/client_tests/test_terminal.rb similarity index 100% rename from test/square/integration/client_tests/test_terminal.rb rename to test/custom/integration/client_tests/test_terminal.rb diff --git a/test/square/integration/integration_test_base.rb b/test/custom/integration/integration_test_base.rb similarity index 100% rename from test/square/integration/integration_test_base.rb rename to test/custom/integration/integration_test_base.rb diff --git a/test/square/integration/testdata/image.jpeg b/test/custom/integration/testdata/image.jpeg similarity index 100% rename from test/square/integration/testdata/image.jpeg rename to test/custom/integration/testdata/image.jpeg diff --git a/test/square/internal/multipart/test_form_data.rb b/test/custom/internal/multipart/test_form_data.rb similarity index 100% rename from test/square/internal/multipart/test_form_data.rb rename to test/custom/internal/multipart/test_form_data.rb diff --git a/test/square/internal/types/test_array.rb b/test/custom/internal/types/test_array.rb similarity index 100% rename from test/square/internal/types/test_array.rb rename to test/custom/internal/types/test_array.rb diff --git a/test/square/internal/types/test_boolean.rb b/test/custom/internal/types/test_boolean.rb similarity index 100% rename from test/square/internal/types/test_boolean.rb rename to test/custom/internal/types/test_boolean.rb diff --git a/test/square/internal/types/test_enum.rb b/test/custom/internal/types/test_enum.rb similarity index 100% rename from test/square/internal/types/test_enum.rb rename to test/custom/internal/types/test_enum.rb diff --git a/test/square/internal/types/test_hash.rb b/test/custom/internal/types/test_hash.rb similarity index 100% rename from test/square/internal/types/test_hash.rb rename to test/custom/internal/types/test_hash.rb diff --git a/test/square/internal/types/test_model.rb b/test/custom/internal/types/test_model.rb similarity index 100% rename from test/square/internal/types/test_model.rb rename to test/custom/internal/types/test_model.rb diff --git a/test/square/internal/types/test_union.rb b/test/custom/internal/types/test_union.rb similarity index 100% rename from test/square/internal/types/test_union.rb rename to test/custom/internal/types/test_union.rb diff --git a/test/square/internal/types/test_utils.rb b/test/custom/internal/types/test_utils.rb similarity index 100% rename from test/square/internal/types/test_utils.rb rename to test/custom/internal/types/test_utils.rb diff --git a/test/test_helper.rb b/test/custom/test_helper.rb similarity index 98% rename from test/test_helper.rb rename to test/custom/test_helper.rb index 609ec16f1..194e2fdd7 100644 --- a/test/test_helper.rb +++ b/test/custom/test_helper.rb @@ -2,7 +2,7 @@ require "minitest/autorun" require "minitest/rg" -require_relative "../lib/square" +require_relative "../../lib/square" def test_token @test_token ||= ENV.fetch("SQUARE_TOKEN", nil) || ENV.fetch("TEST_SQUARE_TOKEN", nil) || ENV.fetch("SQUARE_SANDBOX_TOKEN", nil) || "test_token" From f74e30415468c38fc674a807e3e68d60578dc593 Mon Sep 17 00:00:00 2001 From: fern-support <126544928+fern-support@users.noreply.github.com> Date: Fri, 5 Dec 2025 10:29:11 -0500 Subject: [PATCH 2/2] Fix paths --- .fernignore | 2 +- Rakefile | 2 +- test/custom/integration/client_tests/test_cash_drawers.rb | 2 +- test/custom/integration/client_tests/test_catalog.rb | 2 +- test/custom/integration/client_tests/test_customers.rb | 2 +- test/custom/integration/client_tests/test_customers_groups.rb | 2 +- test/custom/integration/client_tests/test_customers_segments.rb | 2 +- test/custom/integration/client_tests/test_devices.rb | 2 +- test/custom/integration/client_tests/test_inventory.rb | 2 +- test/custom/integration/client_tests/test_locations.rb | 2 +- test/custom/integration/client_tests/test_merchants.rb | 2 +- test/custom/integration/client_tests/test_mobile.rb | 2 +- test/custom/integration/client_tests/test_orders.rb | 2 +- test/custom/integration/client_tests/test_payments.rb | 2 +- test/custom/integration/client_tests/test_refunds.rb | 2 +- test/custom/integration/client_tests/test_team_members.rb | 2 +- test/custom/integration/client_tests/test_terminal.rb | 2 +- test/custom/internal/multipart/test_form_data.rb | 2 +- test/custom/internal/types/test_array.rb | 2 +- test/custom/internal/types/test_boolean.rb | 2 +- test/custom/internal/types/test_enum.rb | 2 +- test/custom/internal/types/test_hash.rb | 2 +- test/custom/internal/types/test_model.rb | 2 +- test/custom/internal/types/test_union.rb | 2 +- test/custom/internal/types/test_utils.rb | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.fernignore b/.fernignore index 6ee53ed0a..2a36a08ab 100644 --- a/.fernignore +++ b/.fernignore @@ -3,7 +3,7 @@ lib/square_legacy.rb Rakefile .gitignore test/square_legacy -test/square/integration +test/custom .github/workflows README.md lib/square/file_param.rb diff --git a/Rakefile b/Rakefile index 7fe305d45..35daeba72 100644 --- a/Rakefile +++ b/Rakefile @@ -21,7 +21,7 @@ end # Integration tests task :integration_test do - integration_test_files = Dir.glob("test/square/integration/**/*.rb").sort + integration_test_files = Dir.glob("test/custom/integration/**/*.rb").sort cmd = "ruby -Ilib:test:. -w -e 'require \"minitest/autorun\"; " cmd += integration_test_files.map { |f| "require \"#{f}\"" }.join("; ") cmd += "'" diff --git a/test/custom/integration/client_tests/test_cash_drawers.rb b/test/custom/integration/client_tests/test_cash_drawers.rb index a58925fce..ffe8fade0 100644 --- a/test/custom/integration/client_tests/test_cash_drawers.rb +++ b/test/custom/integration/client_tests/test_cash_drawers.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::CashDrawers::Shifts::Client do describe "#list" do diff --git a/test/custom/integration/client_tests/test_catalog.rb b/test/custom/integration/client_tests/test_catalog.rb index 97f767170..34f5ea39f 100644 --- a/test/custom/integration/client_tests/test_catalog.rb +++ b/test/custom/integration/client_tests/test_catalog.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Catalog::Client do MAX_CATALOG_PAGE_SIZE = 100 diff --git a/test/custom/integration/client_tests/test_customers.rb b/test/custom/integration/client_tests/test_customers.rb index d6e8c9326..233153c12 100644 --- a/test/custom/integration/client_tests/test_customers.rb +++ b/test/custom/integration/client_tests/test_customers.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Customers::Client do describe "#create and delete customer" do diff --git a/test/custom/integration/client_tests/test_customers_groups.rb b/test/custom/integration/client_tests/test_customers_groups.rb index 1d235aa0f..35974c38b 100644 --- a/test/custom/integration/client_tests/test_customers_groups.rb +++ b/test/custom/integration/client_tests/test_customers_groups.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Customers::Groups::Client do def create_test_customer_group diff --git a/test/custom/integration/client_tests/test_customers_segments.rb b/test/custom/integration/client_tests/test_customers_segments.rb index 93b3af90c..02d5ce7d7 100644 --- a/test/custom/integration/client_tests/test_customers_segments.rb +++ b/test/custom/integration/client_tests/test_customers_segments.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Customers::Segments::Client do describe "#list" do diff --git a/test/custom/integration/client_tests/test_devices.rb b/test/custom/integration/client_tests/test_devices.rb index e8d5be211..1a55653b1 100644 --- a/test/custom/integration/client_tests/test_devices.rb +++ b/test/custom/integration/client_tests/test_devices.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Devices::Codes::Client do before do diff --git a/test/custom/integration/client_tests/test_inventory.rb b/test/custom/integration/client_tests/test_inventory.rb index 7cf1f463a..575aacb0d 100644 --- a/test/custom/integration/client_tests/test_inventory.rb +++ b/test/custom/integration/client_tests/test_inventory.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Inventory::Client do describe "#batch_get_changes" do diff --git a/test/custom/integration/client_tests/test_locations.rb b/test/custom/integration/client_tests/test_locations.rb index 43b90037b..9e3cca76b 100644 --- a/test/custom/integration/client_tests/test_locations.rb +++ b/test/custom/integration/client_tests/test_locations.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Locations::Client do describe "#list" do diff --git a/test/custom/integration/client_tests/test_merchants.rb b/test/custom/integration/client_tests/test_merchants.rb index cdc76cd1d..909247167 100644 --- a/test/custom/integration/client_tests/test_merchants.rb +++ b/test/custom/integration/client_tests/test_merchants.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Merchants::Client do before do diff --git a/test/custom/integration/client_tests/test_mobile.rb b/test/custom/integration/client_tests/test_mobile.rb index da0741259..04a62c009 100644 --- a/test/custom/integration/client_tests/test_mobile.rb +++ b/test/custom/integration/client_tests/test_mobile.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Mobile::Client do describe "#authorization_code" do diff --git a/test/custom/integration/client_tests/test_orders.rb b/test/custom/integration/client_tests/test_orders.rb index bae91f541..24633db4e 100644 --- a/test/custom/integration/client_tests/test_orders.rb +++ b/test/custom/integration/client_tests/test_orders.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Orders::Client do before do diff --git a/test/custom/integration/client_tests/test_payments.rb b/test/custom/integration/client_tests/test_payments.rb index b7524f3a5..482386df0 100644 --- a/test/custom/integration/client_tests/test_payments.rb +++ b/test/custom/integration/client_tests/test_payments.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Payments::Client do before do diff --git a/test/custom/integration/client_tests/test_refunds.rb b/test/custom/integration/client_tests/test_refunds.rb index 13c3664fb..c00728725 100644 --- a/test/custom/integration/client_tests/test_refunds.rb +++ b/test/custom/integration/client_tests/test_refunds.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Refunds::Client do before do diff --git a/test/custom/integration/client_tests/test_team_members.rb b/test/custom/integration/client_tests/test_team_members.rb index 0c162637b..81aea4514 100644 --- a/test/custom/integration/client_tests/test_team_members.rb +++ b/test/custom/integration/client_tests/test_team_members.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::TeamMembers::Client do def create_test_team_member(location_ids) diff --git a/test/custom/integration/client_tests/test_terminal.rb b/test/custom/integration/client_tests/test_terminal.rb index 880c7dcab..558abbcbb 100644 --- a/test/custom/integration/client_tests/test_terminal.rb +++ b/test/custom/integration/client_tests/test_terminal.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Terminal::Checkouts::Client do before do diff --git a/test/custom/internal/multipart/test_form_data.rb b/test/custom/internal/multipart/test_form_data.rb index 4af61b7c6..36b83c719 100644 --- a/test/custom/internal/multipart/test_form_data.rb +++ b/test/custom/internal/multipart/test_form_data.rb @@ -3,7 +3,7 @@ require "minitest/autorun" require "stringio" require "json" -require "test_helper" +require "custom/test_helper" require "square/file_param" class MockFile diff --git a/test/custom/internal/types/test_array.rb b/test/custom/internal/types/test_array.rb index 1cb863d9f..90b361fd2 100644 --- a/test/custom/internal/types/test_array.rb +++ b/test/custom/internal/types/test_array.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Internal::Types::Array do module TestArray diff --git a/test/custom/internal/types/test_boolean.rb b/test/custom/internal/types/test_boolean.rb index eaa552add..e3ef13799 100644 --- a/test/custom/internal/types/test_boolean.rb +++ b/test/custom/internal/types/test_boolean.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Internal::Types::Boolean do describe ".coerce" do diff --git a/test/custom/internal/types/test_enum.rb b/test/custom/internal/types/test_enum.rb index e920cff01..83de5d00b 100644 --- a/test/custom/internal/types/test_enum.rb +++ b/test/custom/internal/types/test_enum.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Internal::Types::Enum do module EnumTest diff --git a/test/custom/internal/types/test_hash.rb b/test/custom/internal/types/test_hash.rb index c454f985a..a9d9fd650 100644 --- a/test/custom/internal/types/test_hash.rb +++ b/test/custom/internal/types/test_hash.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Internal::Types::Hash do module TestHash diff --git a/test/custom/internal/types/test_model.rb b/test/custom/internal/types/test_model.rb index 4cf76d5de..082155bd9 100644 --- a/test/custom/internal/types/test_model.rb +++ b/test/custom/internal/types/test_model.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Internal::Types::Model do module StringInteger diff --git a/test/custom/internal/types/test_union.rb b/test/custom/internal/types/test_union.rb index 44df2446e..86f944b56 100644 --- a/test/custom/internal/types/test_union.rb +++ b/test/custom/internal/types/test_union.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Internal::Types::Union do class Rectangle < Square::Internal::Types::Model literal :type, "square" diff --git a/test/custom/internal/types/test_utils.rb b/test/custom/internal/types/test_utils.rb index 5de25395b..d7ee79990 100644 --- a/test/custom/internal/types/test_utils.rb +++ b/test/custom/internal/types/test_utils.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "test_helper" +require "custom/test_helper" describe Square::Internal::Types::Utils do Utils = Square::Internal::Types::Utils