From 2b8f0abe497a2e048dd964d98462741f476a6614 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 5 Nov 2020 12:28:43 +0000 Subject: [PATCH] Try some mass auto-correct adding frozen-string-literal to all specs --- .rubocop_todo.yml | 384 ------------------ Gemfile | 2 + Rakefile | 2 + config.ru | 2 + engines/order_management/config/routes.rb | 2 + .../order_management/lib/order_management.rb | 2 + .../lib/order_management/engine.rb | 2 + .../lib/order_management/version.rb | 4 +- .../order_management/order_management.gemspec | 2 + .../enterprise_fee_summary/authorizer_spec.rb | 2 + .../enterprise_fee_summary/parameters_spec.rb | 2 + .../permissions_spec.rb | 2 + .../renderers/csv_renderer_spec.rb | 2 + .../renderers/html_renderer_spec.rb | 2 + .../enterprise_fee_type_total_spec.rb | 2 + .../report_service_spec.rb | 2 + engines/web/config/routes.rb | 2 + engines/web/lib/web.rb | 2 + engines/web/lib/web/engine.rb | 2 + engines/web/lib/web/version.rb | 4 +- .../helpers/cookies_policy_helper_spec.rb | 2 + engines/web/web.gemspec | 2 + .../admin/bulk_line_items_controller_spec.rb | 2 + .../column_preferences_controller_spec.rb | 2 + .../admin/customers_controller_spec.rb | 2 + .../admin/enterprises_controller_spec.rb | 2 + .../admin/inventory_items_controller_spec.rb | 2 + .../manager_invitations_controller_spec.rb | 2 + .../admin/order_cycles_controller_spec.rb | 2 + .../admin/proxy_orders_controller_spec.rb | 2 + .../admin/schedules_controller_spec.rb | 2 + .../admin/stripe_accounts_controller_spec.rb | 2 + ...stripe_connect_settings_controller_spec.rb | 2 + ...subscription_line_items_controller_spec.rb | 2 + .../admin/subscriptions_controller_spec.rb | 2 + .../admin/tag_rules_controller_spec.rb | 2 + .../variant_overrides_controller_spec.rb | 2 + spec/controllers/api/base_controller_spec.rb | 2 + .../api/customers_controller_spec.rb | 2 + .../api/enterprise_fees_controller_spec.rb | 2 + .../api/enterprises_controller_spec.rb | 2 + spec/controllers/api/logos_controller_spec.rb | 2 + .../api/order_cycles_controller_spec.rb | 2 + .../controllers/api/orders_controller_spec.rb | 2 + .../api/product_images_controller_spec.rb | 2 + .../api/products_controller_spec.rb | 2 + .../api/promo_images_controller_spec.rb | 2 + .../api/shipments_controller_spec.rb | 2 + .../api/statuses_controller_spec.rb | 2 + .../api/taxonomies_controller_spec.rb | 2 + .../controllers/api/taxons_controller_spec.rb | 2 + .../terms_and_conditions_controller_spec.rb | 2 + .../api/variants_controller_spec.rb | 2 + spec/controllers/base_controller_spec.rb | 2 + spec/controllers/cart_controller_spec.rb | 2 + spec/controllers/checkout_controller_spec.rb | 2 + .../enterprises_controller_spec.rb | 2 + spec/controllers/groups_controller_spec.rb | 2 + .../controllers/line_items_controller_spec.rb | 2 + .../registration_controller_spec.rb | 2 + spec/controllers/shop_controller_spec.rb | 2 + spec/controllers/shops_controller_spec.rb | 2 + .../admin/adjustments_controller_spec.rb | 2 + .../spree/admin/base_controller_spec.rb | 2 + .../admin/general_settings_controller_spec.rb | 2 + .../spree/admin/invoices_controller_spec.rb | 2 + .../admin/mail_methods_controller_spec.rb | 2 + .../customer_details_controller_spec.rb | 2 + .../spree/admin/orders_controller_spec.rb | 2 + .../spree/admin/overview_controller_spec.rb | 2 + .../admin/payment_methods_controller_spec.rb | 2 + .../spree/admin/products_controller_spec.rb | 2 + .../spree/admin/reports_controller_spec.rb | 2 + .../spree/admin/search_controller_spec.rb | 2 + .../admin/shipping_methods_controller_spec.rb | 2 + .../spree/admin/users_controller_spec.rb | 2 + .../spree/admin/variants_controller_spec.rb | 2 + .../spree/credit_cards_controller_spec.rb | 2 + .../spree/orders_controller_spec.rb | 2 + .../spree/user_sessions_controller_spec.rb | 2 + .../spree/users_controller_spec.rb | 2 + .../stripe/callbacks_controller_spec.rb | 2 + .../stripe/webhooks_controller_spec.rb | 2 + .../user_confirmations_controller_spec.rb | 2 + .../user_passwords_controller_spec.rb | 2 + .../user_registrations_controller_spec.rb | 2 + spec/factories.rb | 2 + spec/factories/address_factory.rb | 2 + .../calculated_adjustment_factory.rb | 2 + spec/factories/calculator_factory.rb | 2 + spec/factories/enterprise_factory.rb | 2 + spec/factories/order_cycle_factory.rb | 2 + spec/factories/order_factory.rb | 2 + spec/factories/price_factory.rb | 2 + spec/factories/product_factory.rb | 2 + .../factories/return_authorization_factory.rb | 2 + spec/factories/shipment_factory.rb | 2 + spec/factories/shipping_method_factory.rb | 2 + spec/factories/state_factory.rb | 2 + spec/factories/stock_movement_factory.rb | 2 + spec/factories/subscription_factory.rb | 2 + spec/factories/tag_rule_factory.rb | 2 + spec/factories/user_factory.rb | 2 + spec/factories/variant_factory.rb | 2 + spec/features/admin/adjustments_spec.rb | 2 + spec/features/admin/authentication_spec.rb | 2 + .../admin/bulk_order_management_spec.rb | 2 + .../admin/bulk_product_update_spec.rb | 2 + .../admin/configuration/content_spec.rb | 2 + .../configuration/general_settings_spec.rb | 2 + .../admin/configuration/mail_methods_spec.rb | 2 + .../admin/configuration/states_spec.rb | 2 + .../configuration/tax_categories_spec.rb | 2 + .../admin/configuration/tax_rates_spec.rb | 2 + .../admin/configuration/taxonomies_spec.rb | 2 + .../admin/configuration/zones_spec.rb | 2 + spec/features/admin/customers_spec.rb | 2 + spec/features/admin/enterprise_fees_spec.rb | 2 + spec/features/admin/enterprise_groups_spec.rb | 2 + .../admin/enterprise_relationships_spec.rb | 2 + spec/features/admin/enterprise_roles_spec.rb | 2 + spec/features/admin/enterprise_user_spec.rb | 2 + spec/features/admin/enterprises/index_spec.rb | 2 + spec/features/admin/enterprises_spec.rb | 2 + spec/features/admin/external_services_spec.rb | 2 + spec/features/admin/multilingual_spec.rb | 2 + spec/features/admin/overview_spec.rb | 2 + spec/features/admin/payment_method_spec.rb | 2 + spec/features/admin/payments_spec.rb | 2 + spec/features/admin/product_import_spec.rb | 2 + spec/features/admin/products_spec.rb | 2 + .../admin/reports/packing_report_spec.rb | 2 + spec/features/admin/reports_spec.rb | 2 + spec/features/admin/schedules_spec.rb | 2 + spec/features/admin/shipping_methods_spec.rb | 2 + spec/features/admin/subscriptions_spec.rb | 2 + spec/features/admin/tag_rules_spec.rb | 2 + spec/features/admin/tax_settings_spec.rb | 2 + spec/features/admin/users_spec.rb | 2 + spec/features/admin/variant_overrides_spec.rb | 2 + spec/features/admin/variants_spec.rb | 2 + spec/features/consumer/account/cards_spec.rb | 2 + .../consumer/account/settings_spec.rb | 2 + spec/features/consumer/account_spec.rb | 2 + spec/features/consumer/authentication_spec.rb | 2 + .../consumer/confirm_invitation_spec.rb | 2 + spec/features/consumer/footer_links_spec.rb | 2 + spec/features/consumer/groups_spec.rb | 2 + spec/features/consumer/multilingual_spec.rb | 2 + spec/features/consumer/producers_spec.rb | 2 + spec/features/consumer/registration_spec.rb | 2 + spec/features/consumer/shopping/cart_spec.rb | 2 + .../consumer/shopping/checkout_auth_spec.rb | 2 + .../consumer/shopping/checkout_paypal_spec.rb | 2 + .../consumer/shopping/checkout_spec.rb | 2 + .../consumer/shopping/embedded_groups_spec.rb | 2 + .../shopping/embedded_shopfronts_spec.rb | 2 + .../features/consumer/shopping/orders_spec.rb | 2 + .../consumer/shopping/products_spec.rb | 2 + .../consumer/shopping/shopping_spec.rb | 2 + .../shopping/variant_overrides_spec.rb | 2 + spec/features/consumer/shops_spec.rb | 2 + spec/features/consumer/sitemap_spec.rb | 2 + spec/helpers/admin/orders_helper_spec.rb | 2 + .../admin/subscriptions_helper_spec.rb | 2 + spec/helpers/checkout_helper_spec.rb | 2 + spec/helpers/enterprises_helper_spec.rb | 2 + spec/helpers/groups_helper_spec.rb | 2 + spec/helpers/i18n_helper_spec.rb | 2 + spec/helpers/injection_helper_spec.rb | 2 + spec/helpers/navigation_helper_spec.rb | 2 + spec/helpers/order_cycles_helper_spec.rb | 2 + spec/helpers/serializer_helper_spec.rb | 2 + spec/helpers/shared_helper_spec.rb | 2 + spec/helpers/shop_helper_spec.rb | 2 + spec/helpers/spree/admin/base_helper_spec.rb | 2 + .../helpers/spree/admin/orders_helper_spec.rb | 2 + spec/helpers/spree/orders_helper_spec.rb | 2 + spec/jobs/confirm_order_job_spec.rb | 2 + spec/jobs/confirm_signup_job_spec.rb | 2 + spec/jobs/heartbeat_job_spec.rb | 2 + .../jobs/order_cycle_notification_job_spec.rb | 2 + spec/jobs/subscription_confirm_job_spec.rb | 2 + spec/jobs/subscription_placement_job_spec.rb | 2 + spec/jobs/welcome_enterprise_job_spec.rb | 2 + .../open_food_network/address_finder_spec.rb | 2 + .../customers_report_spec.rb | 2 + .../enterprise_fee_applicator_spec.rb | 2 + .../enterprise_fee_calculator_spec.rb | 2 + .../enterprise_issue_validator_spec.rb | 2 + .../open_food_network/error_logger_spec.rb | 2 + .../open_food_network/feature_toggle_spec.rb | 2 + .../group_buy_report_spec.rb | 2 + .../lib/open_food_network/i18n_config_spec.rb | 2 + .../lettuce_share_report_spec.rb | 2 + .../order_and_distributor_report_spec.rb | 2 + .../order_cycle_form_applicator_spec.rb | 2 + .../order_cycle_management_report_spec.rb | 2 + .../order_cycle_permissions_spec.rb | 2 + .../open_food_network/order_grouper_spec.rb | 2 + .../customer_totals_report_spec.rb | 2 + ...tributor_totals_by_supplier_report_spec.rb | 2 + ...plier_totals_by_distributor_report_spec.rb | 2 + .../supplier_totals_report_spec.rb | 2 + .../orders_and_fulfillments_report_spec.rb | 2 + .../open_food_network/packing_report_spec.rb | 2 + .../lib/open_food_network/permissions_spec.rb | 2 + .../products_and_inventory_report_spec.rb | 2 + .../open_food_network/property_merge_spec.rb | 2 + .../open_food_network/referer_parser_spec.rb | 2 + .../sales_tax_report_spec.rb | 2 + .../scope_variant_to_hub_spec.rb | 2 + .../scope_variants_to_search_spec.rb | 2 + .../tag_rule_applicator_spec.rb | 2 + .../user_balance_calculator_spec.rb | 2 + .../users_and_enterprises_report_spec.rb | 2 + .../xero_invoices_report_spec.rb | 2 + spec/lib/spree/localized_number_spec.rb | 2 + spec/lib/stripe/account_connector_spec.rb | 2 + spec/lib/stripe/webhook_handler_spec.rb | 2 + spec/lib/tasks/enterprises_rake_spec.rb | 2 + spec/lib/tasks/users_rake_spec.rb | 2 + spec/mailers/enterprise_mailer_spec.rb | 2 + spec/mailers/producer_mailer_spec.rb | 2 + spec/mailers/subscription_mailer_spec.rb | 2 + spec/mailers/user_mailer_spec.rb | 2 + spec/models/adjustment_metadata_spec.rb | 2 + .../flat_percent_item_total_spec.rb | 2 + .../calculator/flat_percent_per_item_spec.rb | 2 + spec/models/calculator/flat_rate_spec.rb | 2 + spec/models/calculator/flexi_rate_spec.rb | 2 + spec/models/calculator/per_item_spec.rb | 2 + spec/models/calculator/price_sack_spec.rb | 2 + spec/models/calculator/weight_spec.rb | 2 + spec/models/column_preference_spec.rb | 2 + spec/models/concerns/order_shipment_spec.rb | 2 + spec/models/concerns/product_stock_spec.rb | 2 + spec/models/concerns/variant_stock_spec.rb | 2 + spec/models/content_configuration_spec.rb | 2 + spec/models/customer_spec.rb | 2 + spec/models/enterprise_caching_spec.rb | 2 + spec/models/enterprise_fee_spec.rb | 2 + spec/models/enterprise_group_spec.rb | 2 + spec/models/enterprise_relationship_spec.rb | 2 + spec/models/enterprise_spec.rb | 2 + spec/models/exchange_spec.rb | 2 + spec/models/model_set_spec.rb | 2 + spec/models/order_cycle_spec.rb | 2 + .../product_import/entry_processor_spec.rb | 2 + .../inventory_reset_strategy_spec.rb | 2 + .../product_import/reset_absent_spec.rb | 2 + spec/models/product_import/settings_spec.rb | 2 + spec/models/product_importer_spec.rb | 2 + spec/models/proxy_order_spec.rb | 2 + spec/models/spree/ability_spec.rb | 4 +- spec/models/spree/addresses_spec.rb | 2 + spec/models/spree/adjustment_spec.rb | 2 + spec/models/spree/calculator_spec.rb | 2 + spec/models/spree/classification_spec.rb | 2 + spec/models/spree/credit_card_spec.rb | 2 + .../spree/gateway/stripe_connect_spec.rb | 2 + spec/models/spree/line_item_spec.rb | 2 + spec/models/spree/order/checkout_spec.rb | 2 + spec/models/spree/order_spec.rb | 2 + spec/models/spree/payment_method_spec.rb | 2 + spec/models/spree/payment_spec.rb | 2 + .../preferences/file_configuration_spec.rb | 2 + spec/models/spree/price_spec.rb | 2 + spec/models/spree/product_set_spec.rb | 2 + spec/models/spree/product_spec.rb | 2 + spec/models/spree/shipping_method_spec.rb | 2 + .../stock/availability_validator_spec.rb | 2 + spec/models/spree/tax_rate_spec.rb | 2 + spec/models/spree/user_spec.rb | 2 + spec/models/spree/variant_spec.rb | 2 + spec/models/stripe_account_spec.rb | 2 + spec/models/subscription_line_item_spec.rb | 2 + spec/models/subscription_spec.rb | 2 + spec/models/tag_rule/discount_order_spec.rb | 2 + .../tag_rule/filter_order_cycles_spec.rb | 2 + .../tag_rule/filter_payment_methods_spec.rb | 2 + spec/models/tag_rule/filter_products_spec.rb | 2 + .../tag_rule/filter_shipping_methods_spec.rb | 2 + spec/models/tag_rule_spec.rb | 2 + spec/models/variant_override_spec.rb | 2 + spec/performance/injection_helper_spec.rb | 2 + spec/performance/orders_controller_spec.rb | 2 + spec/performance/shop_controller_spec.rb | 2 + .../requests/checkout/failed_checkout_spec.rb | 2 + spec/requests/checkout/paypal_spec.rb | 2 + spec/requests/checkout/stripe_connect_spec.rb | 2 + .../embedded_shopfronts_headers_spec.rb | 2 + spec/requests/large_request_spec.rb | 2 + .../api/admin/customer_serializer_spec.rb | 2 + .../api/admin/enterprise_serializer_spec.rb | 2 + .../api/admin/exchange_serializer_spec.rb | 2 + .../supplied_product_serializer_spec.rb | 2 + .../admin/index_enterprise_serializer_spec.rb | 2 + .../api/admin/order_cycle_serializer_spec.rb | 2 + .../api/admin/product_serializer_spec.rb | 2 + .../subscription_customer_serializer_spec.rb | 2 + .../subscription_line_item_serializer_spec.rb | 2 + .../admin/variant_override_serializer_spec.rb | 2 + .../api/admin/variant_serializer_spec.rb | 2 + .../api/cached_enterprise_serializer_spec.rb | 2 + .../api/credit_card_serializer_spec.rb | 2 + .../api/current_order_serializer_spec.rb | 2 + .../api/enterprise_serializer_spec.rb | 2 + ...terprise_shopfront_list_serializer_spec.rb | 2 + .../enterprise_shopfront_serializer_spec.rb | 2 + .../api/group_list_serializer_spec.rb | 2 + .../api/order_cycle_serializer_spec.rb | 2 + spec/serializers/api/order_serializer_spec.rb | 2 + .../api/product_serializer_spec.rb | 2 + .../api/shipping_method_serializer_spec.rb | 2 + .../api/variant_serializer_spec.rb | 2 + spec/services/bulk_invoice_service_spec.rb | 2 + spec/services/cart_service_spec.rb | 2 + .../default_shipping_category_spec.rb | 2 + spec/services/default_stock_location_spec.rb | 2 + spec/services/embedded_page_service_spec.rb | 2 + .../exchange_products_renderer_spec.rb | 2 + .../exchange_variant_bulk_updater_spec.rb | 2 + spec/services/invoice_renderer_spec.rb | 2 + spec/services/mail_configuration_spec.rb | 2 + .../order_cycle_distributed_products_spec.rb | 2 + .../order_cycle_distributed_variants_spec.rb | 2 + spec/services/order_cycle_form_spec.rb | 2 + spec/services/order_cycle_warning_spec.rb | 2 + spec/services/order_factory_spec.rb | 2 + spec/services/order_syncer_spec.rb | 2 + spec/services/order_workflow_spec.rb | 2 + spec/services/permissions/order_spec.rb | 2 + .../product_tag_rules_filterer_spec.rb | 2 + spec/services/products_renderer_spec.rb | 2 + spec/services/search_orders_spec.rb | 2 + spec/services/tax_rate_finder_spec.rb | 2 + spec/services/upload_sanitizer_spec.rb | 2 + .../variant_units/option_value_namer_spec.rb | 2 + spec/services/variants_stock_levels_spec.rb | 2 + spec/spec_helper.rb | 2 + spec/support/ability_helper.rb | 2 + spec/support/api_helper.rb | 2 + spec/support/cancan_helper.rb | 2 + spec/support/controller_helper.rb | 2 + spec/support/delayed_job_helper.rb | 2 + spec/support/downloads_helper.rb | 2 + spec/support/email_helper.rb | 2 + spec/support/embedded_pages_helper.rb | 2 + spec/support/enterprise_groups_helper.rb | 2 + spec/support/feature_toggle_helper.rb | 2 + spec/support/features/datepicker_helper.rb | 2 + spec/support/filters_helper.rb | 2 + spec/support/html_helper.rb | 2 + spec/support/i18n_error_raising.rb | 2 + spec/support/localized_number_helper.rb | 2 + .../matchers/date_time_validator_matchers.rb | 2 + spec/support/matchers/delegate_matchers.rb | 2 + .../matchers/email_confirmation_matchers.rb | 2 + .../matchers/flash_message_matchers.rb | 2 + .../integer_array_validator_matchers.rb | 2 + spec/support/matchers/select2_matchers.rb | 2 + spec/support/matchers/table_matchers.rb | 2 + spec/support/performance_helper.rb | 2 + spec/support/products_helper.rb | 2 + spec/support/request/admin_helper.rb | 2 + spec/support/request/authentication_helper.rb | 2 + spec/support/request/cookie_helper.rb | 2 + spec/support/request/distribution_helper.rb | 2 + spec/support/request/menu_helper.rb | 2 + spec/support/request/shop_workflow.rb | 2 + spec/support/request/ui_component_helper.rb | 2 + spec/support/request/web_helper.rb | 2 + spec/support/seeds.rb | 2 + spec/support/spree/checkout_helpers.rb | 2 + spec/support/spree/money_helper.rb | 2 + spec/support/spree/url_helpers.rb | 2 + spec/support/timecop.rb | 2 + .../date_time_string_validator_spec.rb | 2 + .../integer_array_validator_spec.rb | 2 + .../spree/admin/orders/edit.html.haml_spec.rb | 2 + .../admin/orders/index.html.haml_spec.rb | 2 + .../payment_methods/index.html.haml_spec.rb | 2 + .../shared/_order_links.html.haml_spec.rb | 2 + 384 files changed, 769 insertions(+), 387 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 342484d5ad..144f0a02d8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -443,8 +443,6 @@ Style/FormatStringToken: # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Exclude: - - 'Gemfile' - - 'Rakefile' - 'app/controllers/admin/bulk_line_items_controller.rb' - 'app/controllers/admin/column_preferences_controller.rb' - 'app/controllers/admin/contents_controller.rb' @@ -716,7 +714,6 @@ Style/FrozenStringLiteralComment: - 'app/validators/date_time_string_validator.rb' - 'app/validators/distributors_validator.rb' - 'app/validators/integer_array_validator.rb' - - 'config.ru' - 'engines/order_management/app/controllers/order_management/application_controller.rb' - 'engines/order_management/app/services/order_management/reports/enterprise_fee_summary/authorizer.rb' - 'engines/order_management/app/services/order_management/reports/enterprise_fee_summary/data_representations/coordinator_fee.rb' @@ -741,29 +738,11 @@ Style/FrozenStringLiteralComment: - 'engines/order_management/app/services/reports/permissions.rb' - 'engines/order_management/app/services/reports/renderers/base.rb' - 'engines/order_management/app/services/reports/report_data/base.rb' - - 'engines/order_management/config/routes.rb' - - 'engines/order_management/lib/order_management.rb' - - 'engines/order_management/lib/order_management/engine.rb' - - 'engines/order_management/lib/order_management/version.rb' - - 'engines/order_management/order_management.gemspec' - - 'engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/authorizer_spec.rb' - - 'engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb' - - 'engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/permissions_spec.rb' - - 'engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/csv_renderer_spec.rb' - - 'engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/html_renderer_spec.rb' - - 'engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_data/enterprise_fee_type_total_spec.rb' - - 'engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_service_spec.rb' - 'engines/web/app/controllers/web/angular_templates_controller.rb' - 'engines/web/app/controllers/web/api/cookies_consent_controller.rb' - 'engines/web/app/controllers/web/application_controller.rb' - 'engines/web/app/helpers/web/cookies_policy_helper.rb' - - 'engines/web/config/routes.rb' - - 'engines/web/lib/web.rb' - 'engines/web/lib/web/cookies_consent.rb' - - 'engines/web/lib/web/engine.rb' - - 'engines/web/lib/web/version.rb' - - 'engines/web/spec/helpers/cookies_policy_helper_spec.rb' - - 'engines/web/web.gemspec' - 'lib/discourse/single_sign_on.rb' - 'lib/open_food_network/address_finder.rb' - 'lib/open_food_network/available_payment_method_filter.rb' @@ -840,369 +819,6 @@ Style/FrozenStringLiteralComment: - 'lib/tasks/sample_data/user_factory.rb' - 'lib/tasks/specs.rake' - 'lib/tasks/users.rake' - - 'spec/controllers/admin/bulk_line_items_controller_spec.rb' - - 'spec/controllers/admin/column_preferences_controller_spec.rb' - - 'spec/controllers/admin/customers_controller_spec.rb' - - 'spec/controllers/admin/enterprises_controller_spec.rb' - - 'spec/controllers/admin/inventory_items_controller_spec.rb' - - 'spec/controllers/admin/manager_invitations_controller_spec.rb' - - 'spec/controllers/admin/order_cycles_controller_spec.rb' - - 'spec/controllers/admin/proxy_orders_controller_spec.rb' - - 'spec/controllers/admin/schedules_controller_spec.rb' - - 'spec/controllers/admin/stripe_accounts_controller_spec.rb' - - 'spec/controllers/admin/stripe_connect_settings_controller_spec.rb' - - 'spec/controllers/admin/subscription_line_items_controller_spec.rb' - - 'spec/controllers/admin/subscriptions_controller_spec.rb' - - 'spec/controllers/admin/tag_rules_controller_spec.rb' - - 'spec/controllers/admin/variant_overrides_controller_spec.rb' - - 'spec/controllers/api/base_controller_spec.rb' - - 'spec/controllers/api/customers_controller_spec.rb' - - 'spec/controllers/api/enterprise_fees_controller_spec.rb' - - 'spec/controllers/api/enterprises_controller_spec.rb' - - 'spec/controllers/api/logos_controller_spec.rb' - - 'spec/controllers/api/order_cycles_controller_spec.rb' - - 'spec/controllers/api/orders_controller_spec.rb' - - 'spec/controllers/api/product_images_controller_spec.rb' - - 'spec/controllers/api/products_controller_spec.rb' - - 'spec/controllers/api/promo_images_controller_spec.rb' - - 'spec/controllers/api/shipments_controller_spec.rb' - - 'spec/controllers/api/statuses_controller_spec.rb' - - 'spec/controllers/api/taxonomies_controller_spec.rb' - - 'spec/controllers/api/taxons_controller_spec.rb' - - 'spec/controllers/api/terms_and_conditions_controller_spec.rb' - - 'spec/controllers/api/variants_controller_spec.rb' - - 'spec/controllers/base_controller_spec.rb' - - 'spec/controllers/cart_controller_spec.rb' - - 'spec/controllers/checkout_controller_spec.rb' - - 'spec/controllers/enterprises_controller_spec.rb' - - 'spec/controllers/groups_controller_spec.rb' - - 'spec/controllers/line_items_controller_spec.rb' - - 'spec/controllers/registration_controller_spec.rb' - - 'spec/controllers/shop_controller_spec.rb' - - 'spec/controllers/shops_controller_spec.rb' - - 'spec/controllers/spree/admin/adjustments_controller_spec.rb' - - 'spec/controllers/spree/admin/base_controller_spec.rb' - - 'spec/controllers/spree/admin/general_settings_controller_spec.rb' - - 'spec/controllers/spree/admin/invoices_controller_spec.rb' - - 'spec/controllers/spree/admin/mail_methods_controller_spec.rb' - - 'spec/controllers/spree/admin/orders/customer_details_controller_spec.rb' - - 'spec/controllers/spree/admin/orders_controller_spec.rb' - - 'spec/controllers/spree/admin/overview_controller_spec.rb' - - 'spec/controllers/spree/admin/payment_methods_controller_spec.rb' - - 'spec/controllers/spree/admin/products_controller_spec.rb' - - 'spec/controllers/spree/admin/reports_controller_spec.rb' - - 'spec/controllers/spree/admin/search_controller_spec.rb' - - 'spec/controllers/spree/admin/shipping_methods_controller_spec.rb' - - 'spec/controllers/spree/admin/users_controller_spec.rb' - - 'spec/controllers/spree/admin/variants_controller_spec.rb' - - 'spec/controllers/spree/credit_cards_controller_spec.rb' - - 'spec/controllers/spree/orders_controller_spec.rb' - - 'spec/controllers/spree/user_sessions_controller_spec.rb' - - 'spec/controllers/spree/users_controller_spec.rb' - - 'spec/controllers/stripe/callbacks_controller_spec.rb' - - 'spec/controllers/stripe/webhooks_controller_spec.rb' - - 'spec/controllers/user_confirmations_controller_spec.rb' - - 'spec/controllers/user_passwords_controller_spec.rb' - - 'spec/controllers/user_registrations_controller_spec.rb' - - 'spec/factories.rb' - - 'spec/factories/address_factory.rb' - - 'spec/factories/calculated_adjustment_factory.rb' - - 'spec/factories/calculator_factory.rb' - - 'spec/factories/enterprise_factory.rb' - - 'spec/factories/order_cycle_factory.rb' - - 'spec/factories/order_factory.rb' - - 'spec/factories/price_factory.rb' - - 'spec/factories/product_factory.rb' - - 'spec/factories/return_authorization_factory.rb' - - 'spec/factories/shipment_factory.rb' - - 'spec/factories/shipping_method_factory.rb' - - 'spec/factories/state_factory.rb' - - 'spec/factories/stock_movement_factory.rb' - - 'spec/factories/subscription_factory.rb' - - 'spec/factories/tag_rule_factory.rb' - - 'spec/factories/user_factory.rb' - - 'spec/factories/variant_factory.rb' - - 'spec/features/admin/adjustments_spec.rb' - - 'spec/features/admin/authentication_spec.rb' - - 'spec/features/admin/bulk_order_management_spec.rb' - - 'spec/features/admin/bulk_product_update_spec.rb' - - 'spec/features/admin/configuration/content_spec.rb' - - 'spec/features/admin/configuration/general_settings_spec.rb' - - 'spec/features/admin/configuration/mail_methods_spec.rb' - - 'spec/features/admin/configuration/states_spec.rb' - - 'spec/features/admin/configuration/tax_categories_spec.rb' - - 'spec/features/admin/configuration/tax_rates_spec.rb' - - 'spec/features/admin/configuration/taxonomies_spec.rb' - - 'spec/features/admin/configuration/zones_spec.rb' - - 'spec/features/admin/customers_spec.rb' - - 'spec/features/admin/enterprise_fees_spec.rb' - - 'spec/features/admin/enterprise_groups_spec.rb' - - 'spec/features/admin/enterprise_relationships_spec.rb' - - 'spec/features/admin/enterprise_roles_spec.rb' - - 'spec/features/admin/enterprise_user_spec.rb' - - 'spec/features/admin/enterprises/index_spec.rb' - - 'spec/features/admin/enterprises_spec.rb' - - 'spec/features/admin/external_services_spec.rb' - - 'spec/features/admin/multilingual_spec.rb' - - 'spec/features/admin/overview_spec.rb' - - 'spec/features/admin/payment_method_spec.rb' - - 'spec/features/admin/payments_spec.rb' - - 'spec/features/admin/product_import_spec.rb' - - 'spec/features/admin/products_spec.rb' - - 'spec/features/admin/reports/packing_report_spec.rb' - - 'spec/features/admin/reports_spec.rb' - - 'spec/features/admin/schedules_spec.rb' - - 'spec/features/admin/shipping_methods_spec.rb' - - 'spec/features/admin/subscriptions_spec.rb' - - 'spec/features/admin/tag_rules_spec.rb' - - 'spec/features/admin/tax_settings_spec.rb' - - 'spec/features/admin/users_spec.rb' - - 'spec/features/admin/variant_overrides_spec.rb' - - 'spec/features/admin/variants_spec.rb' - - 'spec/features/consumer/account/cards_spec.rb' - - 'spec/features/consumer/account/settings_spec.rb' - - 'spec/features/consumer/account_spec.rb' - - 'spec/features/consumer/authentication_spec.rb' - - 'spec/features/consumer/confirm_invitation_spec.rb' - - 'spec/features/consumer/footer_links_spec.rb' - - 'spec/features/consumer/groups_spec.rb' - - 'spec/features/consumer/multilingual_spec.rb' - - 'spec/features/consumer/producers_spec.rb' - - 'spec/features/consumer/registration_spec.rb' - - 'spec/features/consumer/shopping/cart_spec.rb' - - 'spec/features/consumer/shopping/checkout_auth_spec.rb' - - 'spec/features/consumer/shopping/checkout_paypal_spec.rb' - - 'spec/features/consumer/shopping/checkout_spec.rb' - - 'spec/features/consumer/shopping/embedded_groups_spec.rb' - - 'spec/features/consumer/shopping/embedded_shopfronts_spec.rb' - - 'spec/features/consumer/shopping/orders_spec.rb' - - 'spec/features/consumer/shopping/products_spec.rb' - - 'spec/features/consumer/shopping/shopping_spec.rb' - - 'spec/features/consumer/shopping/variant_overrides_spec.rb' - - 'spec/features/consumer/shops_spec.rb' - - 'spec/features/consumer/sitemap_spec.rb' - - 'spec/helpers/admin/orders_helper_spec.rb' - - 'spec/helpers/admin/subscriptions_helper_spec.rb' - - 'spec/helpers/checkout_helper_spec.rb' - - 'spec/helpers/enterprises_helper_spec.rb' - - 'spec/helpers/groups_helper_spec.rb' - - 'spec/helpers/html_helper_spec.rb' - - 'spec/helpers/i18n_helper_spec.rb' - - 'spec/helpers/injection_helper_spec.rb' - - 'spec/helpers/navigation_helper_spec.rb' - - 'spec/helpers/order_cycles_helper_spec.rb' - - 'spec/helpers/serializer_helper_spec.rb' - - 'spec/helpers/shared_helper_spec.rb' - - 'spec/helpers/shop_helper_spec.rb' - - 'spec/helpers/spree/admin/base_helper_spec.rb' - - 'spec/helpers/spree/admin/orders_helper_spec.rb' - - 'spec/helpers/spree/orders_helper_spec.rb' - - 'spec/jobs/confirm_order_job_spec.rb' - - 'spec/jobs/confirm_signup_job_spec.rb' - - 'spec/jobs/heartbeat_job_spec.rb' - - 'spec/jobs/order_cycle_notification_job_spec.rb' - - 'spec/jobs/subscription_confirm_job_spec.rb' - - 'spec/jobs/subscription_placement_job_spec.rb' - - 'spec/jobs/welcome_enterprise_job_spec.rb' - - 'spec/lib/open_food_network/address_finder_spec.rb' - - 'spec/lib/open_food_network/customers_report_spec.rb' - - 'spec/lib/open_food_network/enterprise_fee_applicator_spec.rb' - - 'spec/lib/open_food_network/enterprise_fee_calculator_spec.rb' - - 'spec/lib/open_food_network/enterprise_issue_validator_spec.rb' - - 'spec/lib/open_food_network/error_logger_spec.rb' - - 'spec/lib/open_food_network/feature_toggle_spec.rb' - - 'spec/lib/open_food_network/group_buy_report_spec.rb' - - 'spec/lib/open_food_network/i18n_config_spec.rb' - - 'spec/lib/open_food_network/lettuce_share_report_spec.rb' - - 'spec/lib/open_food_network/order_and_distributor_report_spec.rb' - - 'spec/lib/open_food_network/order_cycle_form_applicator_spec.rb' - - 'spec/lib/open_food_network/order_cycle_management_report_spec.rb' - - 'spec/lib/open_food_network/order_cycle_permissions_spec.rb' - - 'spec/lib/open_food_network/order_grouper_spec.rb' - - 'spec/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report_spec.rb' - - 'spec/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report_spec.rb' - - 'spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report_spec.rb' - - 'spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report_spec.rb' - - 'spec/lib/open_food_network/orders_and_fulfillments_report_spec.rb' - - 'spec/lib/open_food_network/packing_report_spec.rb' - - 'spec/lib/open_food_network/permissions_spec.rb' - - 'spec/lib/open_food_network/products_and_inventory_report_spec.rb' - - 'spec/lib/open_food_network/property_merge_spec.rb' - - 'spec/lib/open_food_network/referer_parser_spec.rb' - - 'spec/lib/open_food_network/sales_tax_report_spec.rb' - - 'spec/lib/open_food_network/scope_variant_to_hub_spec.rb' - - 'spec/lib/open_food_network/scope_variants_to_search_spec.rb' - - 'spec/lib/open_food_network/tag_rule_applicator_spec.rb' - - 'spec/lib/open_food_network/user_balance_calculator_spec.rb' - - 'spec/lib/open_food_network/users_and_enterprises_report_spec.rb' - - 'spec/lib/open_food_network/xero_invoices_report_spec.rb' - - 'spec/lib/spree/localized_number_spec.rb' - - 'spec/lib/stripe/account_connector_spec.rb' - - 'spec/lib/stripe/webhook_handler_spec.rb' - - 'spec/lib/tasks/enterprises_rake_spec.rb' - - 'spec/lib/tasks/users_rake_spec.rb' - - 'spec/mailers/enterprise_mailer_spec.rb' - - 'spec/mailers/producer_mailer_spec.rb' - - 'spec/mailers/subscription_mailer_spec.rb' - - 'spec/mailers/user_mailer_spec.rb' - - 'spec/models/adjustment_metadata_spec.rb' - - 'spec/models/calculator/flat_percent_item_total_spec.rb' - - 'spec/models/calculator/flat_percent_per_item_spec.rb' - - 'spec/models/calculator/flat_rate_spec.rb' - - 'spec/models/calculator/flexi_rate_spec.rb' - - 'spec/models/calculator/per_item_spec.rb' - - 'spec/models/calculator/price_sack_spec.rb' - - 'spec/models/calculator/weight_spec.rb' - - 'spec/models/column_preference_spec.rb' - - 'spec/models/concerns/order_shipment_spec.rb' - - 'spec/models/concerns/product_stock_spec.rb' - - 'spec/models/concerns/variant_stock_spec.rb' - - 'spec/models/content_configuration_spec.rb' - - 'spec/models/customer_spec.rb' - - 'spec/models/enterprise_caching_spec.rb' - - 'spec/models/enterprise_fee_spec.rb' - - 'spec/models/enterprise_group_spec.rb' - - 'spec/models/enterprise_relationship_spec.rb' - - 'spec/models/enterprise_spec.rb' - - 'spec/models/exchange_spec.rb' - - 'spec/models/model_set_spec.rb' - - 'spec/models/order_cycle_spec.rb' - - 'spec/models/product_import/entry_processor_spec.rb' - - 'spec/models/product_import/inventory_reset_strategy_spec.rb' - - 'spec/models/product_import/reset_absent_spec.rb' - - 'spec/models/product_import/settings_spec.rb' - - 'spec/models/product_importer_spec.rb' - - 'spec/models/proxy_order_spec.rb' - - 'spec/models/spree/ability_spec.rb' - - 'spec/models/spree/addresses_spec.rb' - - 'spec/models/spree/adjustment_spec.rb' - - 'spec/models/spree/calculator_spec.rb' - - 'spec/models/spree/classification_spec.rb' - - 'spec/models/spree/credit_card_spec.rb' - - 'spec/models/spree/gateway/stripe_connect_spec.rb' - - 'spec/models/spree/line_item_spec.rb' - - 'spec/models/spree/order/checkout_spec.rb' - - 'spec/models/spree/order_spec.rb' - - 'spec/models/spree/payment_method_spec.rb' - - 'spec/models/spree/payment_spec.rb' - - 'spec/models/spree/preferences/file_configuration_spec.rb' - - 'spec/models/spree/price_spec.rb' - - 'spec/models/spree/product_set_spec.rb' - - 'spec/models/spree/product_spec.rb' - - 'spec/models/spree/shipping_method_spec.rb' - - 'spec/models/spree/stock/availability_validator_spec.rb' - - 'spec/models/spree/tax_rate_spec.rb' - - 'spec/models/spree/user_spec.rb' - - 'spec/models/spree/variant_spec.rb' - - 'spec/models/stripe_account_spec.rb' - - 'spec/models/subscription_line_item_spec.rb' - - 'spec/models/subscription_spec.rb' - - 'spec/models/tag_rule/discount_order_spec.rb' - - 'spec/models/tag_rule/filter_order_cycles_spec.rb' - - 'spec/models/tag_rule/filter_payment_methods_spec.rb' - - 'spec/models/tag_rule/filter_products_spec.rb' - - 'spec/models/tag_rule/filter_shipping_methods_spec.rb' - - 'spec/models/tag_rule_spec.rb' - - 'spec/models/variant_override_spec.rb' - - 'spec/performance/injection_helper_spec.rb' - - 'spec/performance/orders_controller_spec.rb' - - 'spec/performance/shop_controller_spec.rb' - - 'spec/requests/checkout/failed_checkout_spec.rb' - - 'spec/requests/checkout/paypal_spec.rb' - - 'spec/requests/checkout/stripe_connect_spec.rb' - - 'spec/requests/embedded_shopfronts_headers_spec.rb' - - 'spec/requests/large_request_spec.rb' - - 'spec/serializers/api/admin/customer_serializer_spec.rb' - - 'spec/serializers/api/admin/enterprise_serializer_spec.rb' - - 'spec/serializers/api/admin/exchange_serializer_spec.rb' - - 'spec/serializers/api/admin/for_order_cycle/supplied_product_serializer_spec.rb' - - 'spec/serializers/api/admin/index_enterprise_serializer_spec.rb' - - 'spec/serializers/api/admin/order_cycle_serializer_spec.rb' - - 'spec/serializers/api/admin/product_serializer_spec.rb' - - 'spec/serializers/api/admin/subscription_customer_serializer_spec.rb' - - 'spec/serializers/api/admin/subscription_line_item_serializer_spec.rb' - - 'spec/serializers/api/admin/variant_override_serializer_spec.rb' - - 'spec/serializers/api/admin/variant_serializer_spec.rb' - - 'spec/serializers/api/cached_enterprise_serializer_spec.rb' - - 'spec/serializers/api/credit_card_serializer_spec.rb' - - 'spec/serializers/api/current_order_serializer_spec.rb' - - 'spec/serializers/api/enterprise_serializer_spec.rb' - - 'spec/serializers/api/enterprise_shopfront_list_serializer_spec.rb' - - 'spec/serializers/api/enterprise_shopfront_serializer_spec.rb' - - 'spec/serializers/api/group_list_serializer_spec.rb' - - 'spec/serializers/api/order_cycle_serializer_spec.rb' - - 'spec/serializers/api/order_serializer_spec.rb' - - 'spec/serializers/api/product_serializer_spec.rb' - - 'spec/serializers/api/shipping_method_serializer_spec.rb' - - 'spec/serializers/api/variant_serializer_spec.rb' - - 'spec/services/bulk_invoice_service_spec.rb' - - 'spec/services/cart_service_spec.rb' - - 'spec/services/default_shipping_category_spec.rb' - - 'spec/services/default_stock_location_spec.rb' - - 'spec/services/embedded_page_service_spec.rb' - - 'spec/services/exchange_products_renderer_spec.rb' - - 'spec/services/exchange_variant_bulk_updater_spec.rb' - - 'spec/services/invoice_renderer_spec.rb' - - 'spec/services/mail_configuration_spec.rb' - - 'spec/services/order_cycle_distributed_products_spec.rb' - - 'spec/services/order_cycle_distributed_variants_spec.rb' - - 'spec/services/order_cycle_form_spec.rb' - - 'spec/services/order_cycle_warning_spec.rb' - - 'spec/services/order_factory_spec.rb' - - 'spec/services/order_syncer_spec.rb' - - 'spec/services/order_workflow_spec.rb' - - 'spec/services/permissions/order_spec.rb' - - 'spec/services/product_tag_rules_filterer_spec.rb' - - 'spec/services/products_renderer_spec.rb' - - 'spec/services/search_orders_spec.rb' - - 'spec/services/tax_rate_finder_spec.rb' - - 'spec/services/upload_sanitizer_spec.rb' - - 'spec/services/variant_units/option_value_namer_spec.rb' - - 'spec/services/variants_stock_levels_spec.rb' - - 'spec/spec_helper.rb' - - 'spec/support/ability_helper.rb' - - 'spec/support/api_helper.rb' - - 'spec/support/cancan_helper.rb' - - 'spec/support/controller_helper.rb' - - 'spec/support/delayed_job_helper.rb' - - 'spec/support/downloads_helper.rb' - - 'spec/support/email_helper.rb' - - 'spec/support/embedded_pages_helper.rb' - - 'spec/support/enterprise_groups_helper.rb' - - 'spec/support/feature_toggle_helper.rb' - - 'spec/support/features/datepicker_helper.rb' - - 'spec/support/filters_helper.rb' - - 'spec/support/html_helper.rb' - - 'spec/support/i18n_error_raising.rb' - - 'spec/support/localized_number_helper.rb' - - 'spec/support/matchers/date_time_validator_matchers.rb' - - 'spec/support/matchers/delegate_matchers.rb' - - 'spec/support/matchers/email_confirmation_matchers.rb' - - 'spec/support/matchers/flash_message_matchers.rb' - - 'spec/support/matchers/integer_array_validator_matchers.rb' - - 'spec/support/matchers/select2_matchers.rb' - - 'spec/support/matchers/table_matchers.rb' - - 'spec/support/performance_helper.rb' - - 'spec/support/products_helper.rb' - - 'spec/support/request/admin_helper.rb' - - 'spec/support/request/authentication_helper.rb' - - 'spec/support/request/cookie_helper.rb' - - 'spec/support/request/distribution_helper.rb' - - 'spec/support/request/menu_helper.rb' - - 'spec/support/request/shop_workflow.rb' - - 'spec/support/request/ui_component_helper.rb' - - 'spec/support/request/web_helper.rb' - - 'spec/support/seeds.rb' - - 'spec/support/spree/checkout_helpers.rb' - - 'spec/support/spree/money_helper.rb' - - 'spec/support/spree/url_helpers.rb' - - 'spec/support/timecop.rb' - - 'spec/validators/date_time_string_validator_spec.rb' - - 'spec/validators/integer_array_validator_spec.rb' - - 'spec/views/spree/admin/orders/edit.html.haml_spec.rb' - - 'spec/views/spree/admin/orders/index.html.haml_spec.rb' - - 'spec/views/spree/admin/payment_methods/index.html.haml_spec.rb' - - 'spec/views/spree/admin/shared/_order_links.html.haml_spec.rb' # Offense count: 39 # Configuration parameters: MinBodyLength. diff --git a/Gemfile b/Gemfile index ce1ca712b7..e8e86db56f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' ruby "2.3.7" git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" } diff --git a/Rakefile b/Rakefile index b462be57e6..045e002991 100755 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,6 @@ #!/usr/bin/env rake +# frozen_string_literal: true + # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. diff --git a/config.ru b/config.ru index e2d03deb47..0a9098c6cc 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file is used by Rack-based servers to start the application. if ENV.fetch('KILL_UNICORNS', false) && ['production', 'staging'].include?(ENV['RAILS_ENV']) diff --git a/engines/order_management/config/routes.rb b/engines/order_management/config/routes.rb index 769253beec..0e8fd595dd 100644 --- a/engines/order_management/config/routes.rb +++ b/engines/order_management/config/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Openfoodnetwork::Application.routes.append do namespace :order_management do namespace :reports do diff --git a/engines/order_management/lib/order_management.rb b/engines/order_management/lib/order_management.rb index 816ef31b89..a5ebf4e6a1 100644 --- a/engines/order_management/lib/order_management.rb +++ b/engines/order_management/lib/order_management.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "order_management/engine" module OrderManagement diff --git a/engines/order_management/lib/order_management/engine.rb b/engines/order_management/lib/order_management/engine.rb index a79bb4d0c7..5f579f30aa 100644 --- a/engines/order_management/lib/order_management/engine.rb +++ b/engines/order_management/lib/order_management/engine.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OrderManagement class Engine < ::Rails::Engine isolate_namespace OrderManagement diff --git a/engines/order_management/lib/order_management/version.rb b/engines/order_management/lib/order_management/version.rb index ccdf0928b4..95e1173d05 100644 --- a/engines/order_management/lib/order_management/version.rb +++ b/engines/order_management/lib/order_management/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OrderManagement - VERSION = "0.0.1".freeze + VERSION = "0.0.1" end diff --git a/engines/order_management/order_management.gemspec b/engines/order_management/order_management.gemspec index 0ab11f2800..a5ff6759bc 100644 --- a/engines/order_management/order_management.gemspec +++ b/engines/order_management/order_management.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + $LOAD_PATH.push File.expand_path('lib', __dir__) require "order_management/version" diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/authorizer_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/authorizer_spec.rb index 62d6e74465..bc9e40c852 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/authorizer_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/authorizer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderManagement::Reports::EnterpriseFeeSummary::Authorizer do diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb index 130401cb34..0a2da275b1 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require "date_time_string_validator" diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/permissions_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/permissions_spec.rb index 2024da96c7..39334f6dc0 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/permissions_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/permissions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderManagement::Reports::EnterpriseFeeSummary::Permissions do diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/csv_renderer_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/csv_renderer_spec.rb index d265de4933..686f6102a8 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/csv_renderer_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/csv_renderer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderManagement::Reports::EnterpriseFeeSummary::Renderers::CsvRenderer do diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/html_renderer_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/html_renderer_spec.rb index 1bd591e021..957adf9226 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/html_renderer_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/renderers/html_renderer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderManagement::Reports::EnterpriseFeeSummary::Renderers::HtmlRenderer do diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_data/enterprise_fee_type_total_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_data/enterprise_fee_type_total_spec.rb index 9a30660692..a091896a3d 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_data/enterprise_fee_type_total_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_data/enterprise_fee_type_total_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderManagement::Reports::EnterpriseFeeSummary::ReportData::EnterpriseFeeTypeTotal do diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_service_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_service_spec.rb index a8575168b3..88de4dccca 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_service_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/report_service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderManagement::Reports::EnterpriseFeeSummary::ReportService do diff --git a/engines/web/config/routes.rb b/engines/web/config/routes.rb index e129324bec..4b6440e06a 100644 --- a/engines/web/config/routes.rb +++ b/engines/web/config/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Openfoodnetwork::Application.routes.append do scope '/api/cookies' do resource :consent, only: [:show, :create, :destroy], controller: "web/api/cookies_consent" diff --git a/engines/web/lib/web.rb b/engines/web/lib/web.rb index 613b763014..ab57d192ae 100644 --- a/engines/web/lib/web.rb +++ b/engines/web/lib/web.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "web/engine" module Web diff --git a/engines/web/lib/web/engine.rb b/engines/web/lib/web/engine.rb index 5285d6726b..632628c8b6 100644 --- a/engines/web/lib/web/engine.rb +++ b/engines/web/lib/web/engine.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Web class Engine < ::Rails::Engine isolate_namespace Web diff --git a/engines/web/lib/web/version.rb b/engines/web/lib/web/version.rb index ae51029b5c..61ad9bae0c 100644 --- a/engines/web/lib/web/version.rb +++ b/engines/web/lib/web/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Web - VERSION = "0.0.1".freeze + VERSION = "0.0.1" end diff --git a/engines/web/spec/helpers/cookies_policy_helper_spec.rb b/engines/web/spec/helpers/cookies_policy_helper_spec.rb index 9c333b363f..6807786a36 100644 --- a/engines/web/spec/helpers/cookies_policy_helper_spec.rb +++ b/engines/web/spec/helpers/cookies_policy_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Web diff --git a/engines/web/web.gemspec b/engines/web/web.gemspec index f44ee68909..ebc9d4d1e7 100644 --- a/engines/web/web.gemspec +++ b/engines/web/web.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + $LOAD_PATH.push File.expand_path('lib', __dir__) require "web/version" diff --git a/spec/controllers/admin/bulk_line_items_controller_spec.rb b/spec/controllers/admin/bulk_line_items_controller_spec.rb index bd68266792..fa8f628c6c 100644 --- a/spec/controllers/admin/bulk_line_items_controller_spec.rb +++ b/spec/controllers/admin/bulk_line_items_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::BulkLineItemsController, type: :controller do diff --git a/spec/controllers/admin/column_preferences_controller_spec.rb b/spec/controllers/admin/column_preferences_controller_spec.rb index 53f2d12fda..74ee067825 100644 --- a/spec/controllers/admin/column_preferences_controller_spec.rb +++ b/spec/controllers/admin/column_preferences_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::ColumnPreferencesController, type: :controller do diff --git a/spec/controllers/admin/customers_controller_spec.rb b/spec/controllers/admin/customers_controller_spec.rb index efdb436c3a..1a4595ee19 100644 --- a/spec/controllers/admin/customers_controller_spec.rb +++ b/spec/controllers/admin/customers_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Admin diff --git a/spec/controllers/admin/enterprises_controller_spec.rb b/spec/controllers/admin/enterprises_controller_spec.rb index b7077ba31e..3cc901337b 100644 --- a/spec/controllers/admin/enterprises_controller_spec.rb +++ b/spec/controllers/admin/enterprises_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/order_cycle_permissions' diff --git a/spec/controllers/admin/inventory_items_controller_spec.rb b/spec/controllers/admin/inventory_items_controller_spec.rb index 6d3f30f41f..6f4f873102 100644 --- a/spec/controllers/admin/inventory_items_controller_spec.rb +++ b/spec/controllers/admin/inventory_items_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::InventoryItemsController, type: :controller do diff --git a/spec/controllers/admin/manager_invitations_controller_spec.rb b/spec/controllers/admin/manager_invitations_controller_spec.rb index d245f6cf4d..0f838dc2e1 100644 --- a/spec/controllers/admin/manager_invitations_controller_spec.rb +++ b/spec/controllers/admin/manager_invitations_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Admin diff --git a/spec/controllers/admin/order_cycles_controller_spec.rb b/spec/controllers/admin/order_cycles_controller_spec.rb index 6988fa4787..8321cefaa8 100644 --- a/spec/controllers/admin/order_cycles_controller_spec.rb +++ b/spec/controllers/admin/order_cycles_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Admin diff --git a/spec/controllers/admin/proxy_orders_controller_spec.rb b/spec/controllers/admin/proxy_orders_controller_spec.rb index ccd4a9bb02..27042a6cd7 100644 --- a/spec/controllers/admin/proxy_orders_controller_spec.rb +++ b/spec/controllers/admin/proxy_orders_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::ProxyOrdersController, type: :controller do diff --git a/spec/controllers/admin/schedules_controller_spec.rb b/spec/controllers/admin/schedules_controller_spec.rb index 0648574642..4013f7492b 100644 --- a/spec/controllers/admin/schedules_controller_spec.rb +++ b/spec/controllers/admin/schedules_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::SchedulesController, type: :controller do diff --git a/spec/controllers/admin/stripe_accounts_controller_spec.rb b/spec/controllers/admin/stripe_accounts_controller_spec.rb index 39dea8d9a4..3517374885 100644 --- a/spec/controllers/admin/stripe_accounts_controller_spec.rb +++ b/spec/controllers/admin/stripe_accounts_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::StripeAccountsController, type: :controller do diff --git a/spec/controllers/admin/stripe_connect_settings_controller_spec.rb b/spec/controllers/admin/stripe_connect_settings_controller_spec.rb index 3de185a882..a64bac75ba 100644 --- a/spec/controllers/admin/stripe_connect_settings_controller_spec.rb +++ b/spec/controllers/admin/stripe_connect_settings_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::StripeConnectSettingsController, type: :controller do diff --git a/spec/controllers/admin/subscription_line_items_controller_spec.rb b/spec/controllers/admin/subscription_line_items_controller_spec.rb index 6df2a71f53..29719cdc1c 100644 --- a/spec/controllers/admin/subscription_line_items_controller_spec.rb +++ b/spec/controllers/admin/subscription_line_items_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::SubscriptionLineItemsController, type: :controller do diff --git a/spec/controllers/admin/subscriptions_controller_spec.rb b/spec/controllers/admin/subscriptions_controller_spec.rb index 4de3c131c6..e4bba437a4 100644 --- a/spec/controllers/admin/subscriptions_controller_spec.rb +++ b/spec/controllers/admin/subscriptions_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::SubscriptionsController, type: :controller do diff --git a/spec/controllers/admin/tag_rules_controller_spec.rb b/spec/controllers/admin/tag_rules_controller_spec.rb index 5d654958a4..d80da09195 100644 --- a/spec/controllers/admin/tag_rules_controller_spec.rb +++ b/spec/controllers/admin/tag_rules_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::TagRulesController, type: :controller do diff --git a/spec/controllers/admin/variant_overrides_controller_spec.rb b/spec/controllers/admin/variant_overrides_controller_spec.rb index cc8add0156..1dca6eeec6 100644 --- a/spec/controllers/admin/variant_overrides_controller_spec.rb +++ b/spec/controllers/admin/variant_overrides_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::VariantOverridesController, type: :controller do diff --git a/spec/controllers/api/base_controller_spec.rb b/spec/controllers/api/base_controller_spec.rb index 1ebd3eca15..b72bdf1863 100644 --- a/spec/controllers/api/base_controller_spec.rb +++ b/spec/controllers/api/base_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::BaseController do diff --git a/spec/controllers/api/customers_controller_spec.rb b/spec/controllers/api/customers_controller_spec.rb index 25fc52cc09..c40f04dac7 100644 --- a/spec/controllers/api/customers_controller_spec.rb +++ b/spec/controllers/api/customers_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Api diff --git a/spec/controllers/api/enterprise_fees_controller_spec.rb b/spec/controllers/api/enterprise_fees_controller_spec.rb index b32423fea2..85979beacb 100644 --- a/spec/controllers/api/enterprise_fees_controller_spec.rb +++ b/spec/controllers/api/enterprise_fees_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Api diff --git a/spec/controllers/api/enterprises_controller_spec.rb b/spec/controllers/api/enterprises_controller_spec.rb index 0a2a185b72..cfc29f9358 100644 --- a/spec/controllers/api/enterprises_controller_spec.rb +++ b/spec/controllers/api/enterprises_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::EnterprisesController, type: :controller do diff --git a/spec/controllers/api/logos_controller_spec.rb b/spec/controllers/api/logos_controller_spec.rb index b4cee3e896..e6e929d423 100644 --- a/spec/controllers/api/logos_controller_spec.rb +++ b/spec/controllers/api/logos_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module Api diff --git a/spec/controllers/api/order_cycles_controller_spec.rb b/spec/controllers/api/order_cycles_controller_spec.rb index 595e734113..aacbeda57b 100644 --- a/spec/controllers/api/order_cycles_controller_spec.rb +++ b/spec/controllers/api/order_cycles_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module Api diff --git a/spec/controllers/api/orders_controller_spec.rb b/spec/controllers/api/orders_controller_spec.rb index b4d03951fc..6b182578cd 100644 --- a/spec/controllers/api/orders_controller_spec.rb +++ b/spec/controllers/api/orders_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Api diff --git a/spec/controllers/api/product_images_controller_spec.rb b/spec/controllers/api/product_images_controller_spec.rb index b5af0ca03c..95ee3bd3de 100644 --- a/spec/controllers/api/product_images_controller_spec.rb +++ b/spec/controllers/api/product_images_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Api diff --git a/spec/controllers/api/products_controller_spec.rb b/spec/controllers/api/products_controller_spec.rb index 8fa1196428..de509f89b5 100644 --- a/spec/controllers/api/products_controller_spec.rb +++ b/spec/controllers/api/products_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'spree/core/product_duplicator' diff --git a/spec/controllers/api/promo_images_controller_spec.rb b/spec/controllers/api/promo_images_controller_spec.rb index ac73a1d94b..9fe559456e 100644 --- a/spec/controllers/api/promo_images_controller_spec.rb +++ b/spec/controllers/api/promo_images_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module Api diff --git a/spec/controllers/api/shipments_controller_spec.rb b/spec/controllers/api/shipments_controller_spec.rb index 7c13fe3318..f82b30e1e5 100644 --- a/spec/controllers/api/shipments_controller_spec.rb +++ b/spec/controllers/api/shipments_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::ShipmentsController, type: :controller do diff --git a/spec/controllers/api/statuses_controller_spec.rb b/spec/controllers/api/statuses_controller_spec.rb index ed3d779bf5..b36f7511e3 100644 --- a/spec/controllers/api/statuses_controller_spec.rb +++ b/spec/controllers/api/statuses_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Api diff --git a/spec/controllers/api/taxonomies_controller_spec.rb b/spec/controllers/api/taxonomies_controller_spec.rb index 6156cc0e78..8f080c9748 100644 --- a/spec/controllers/api/taxonomies_controller_spec.rb +++ b/spec/controllers/api/taxonomies_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Api diff --git a/spec/controllers/api/taxons_controller_spec.rb b/spec/controllers/api/taxons_controller_spec.rb index 07f7024aba..f006bc3b6c 100644 --- a/spec/controllers/api/taxons_controller_spec.rb +++ b/spec/controllers/api/taxons_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::TaxonsController do diff --git a/spec/controllers/api/terms_and_conditions_controller_spec.rb b/spec/controllers/api/terms_and_conditions_controller_spec.rb index 25eb3d83ad..ca6a38290c 100644 --- a/spec/controllers/api/terms_and_conditions_controller_spec.rb +++ b/spec/controllers/api/terms_and_conditions_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module Api diff --git a/spec/controllers/api/variants_controller_spec.rb b/spec/controllers/api/variants_controller_spec.rb index b1d658af6d..6720461c56 100644 --- a/spec/controllers/api/variants_controller_spec.rb +++ b/spec/controllers/api/variants_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::VariantsController, type: :controller do diff --git a/spec/controllers/base_controller_spec.rb b/spec/controllers/base_controller_spec.rb index 635d91fb9d..b3084c18f2 100644 --- a/spec/controllers/base_controller_spec.rb +++ b/spec/controllers/base_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe BaseController, type: :controller do diff --git a/spec/controllers/cart_controller_spec.rb b/spec/controllers/cart_controller_spec.rb index b36eefd83e..50d2ca3c28 100644 --- a/spec/controllers/cart_controller_spec.rb +++ b/spec/controllers/cart_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe CartController, type: :controller do diff --git a/spec/controllers/checkout_controller_spec.rb b/spec/controllers/checkout_controller_spec.rb index 8f884f39c7..d638789f6e 100644 --- a/spec/controllers/checkout_controller_spec.rb +++ b/spec/controllers/checkout_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe CheckoutController, type: :controller do diff --git a/spec/controllers/enterprises_controller_spec.rb b/spec/controllers/enterprises_controller_spec.rb index c33815d1b1..68ce5a8010 100644 --- a/spec/controllers/enterprises_controller_spec.rb +++ b/spec/controllers/enterprises_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe EnterprisesController, type: :controller do diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index ddd5bd6723..9240ba0cf8 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe GroupsController, type: :controller do diff --git a/spec/controllers/line_items_controller_spec.rb b/spec/controllers/line_items_controller_spec.rb index 815903abc0..c2816fb8f3 100644 --- a/spec/controllers/line_items_controller_spec.rb +++ b/spec/controllers/line_items_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe LineItemsController, type: :controller do diff --git a/spec/controllers/registration_controller_spec.rb b/spec/controllers/registration_controller_spec.rb index ea5f73c590..29af1c0e91 100644 --- a/spec/controllers/registration_controller_spec.rb +++ b/spec/controllers/registration_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe RegistrationController, type: :controller do diff --git a/spec/controllers/shop_controller_spec.rb b/spec/controllers/shop_controller_spec.rb index 233fe9d36a..bbcce1bf33 100644 --- a/spec/controllers/shop_controller_spec.rb +++ b/spec/controllers/shop_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ShopController, type: :controller do diff --git a/spec/controllers/shops_controller_spec.rb b/spec/controllers/shops_controller_spec.rb index 9d468b7995..59865906a2 100644 --- a/spec/controllers/shops_controller_spec.rb +++ b/spec/controllers/shops_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ShopsController, type: :controller do diff --git a/spec/controllers/spree/admin/adjustments_controller_spec.rb b/spec/controllers/spree/admin/adjustments_controller_spec.rb index 5a439e55cb..b009784d07 100644 --- a/spec/controllers/spree/admin/adjustments_controller_spec.rb +++ b/spec/controllers/spree/admin/adjustments_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/controllers/spree/admin/base_controller_spec.rb b/spec/controllers/spree/admin/base_controller_spec.rb index d5b1015635..5cbcfbfc58 100644 --- a/spec/controllers/spree/admin/base_controller_spec.rb +++ b/spec/controllers/spree/admin/base_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::BaseController, type: :controller do diff --git a/spec/controllers/spree/admin/general_settings_controller_spec.rb b/spec/controllers/spree/admin/general_settings_controller_spec.rb index a90facd048..4db32d6183 100644 --- a/spec/controllers/spree/admin/general_settings_controller_spec.rb +++ b/spec/controllers/spree/admin/general_settings_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::GeneralSettingsController, type: :controller do diff --git a/spec/controllers/spree/admin/invoices_controller_spec.rb b/spec/controllers/spree/admin/invoices_controller_spec.rb index 33ccaaadcc..8f6a042374 100644 --- a/spec/controllers/spree/admin/invoices_controller_spec.rb +++ b/spec/controllers/spree/admin/invoices_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' xdescribe Spree::Admin::InvoicesController, type: :controller do diff --git a/spec/controllers/spree/admin/mail_methods_controller_spec.rb b/spec/controllers/spree/admin/mail_methods_controller_spec.rb index f7aa10959b..793242d0fc 100644 --- a/spec/controllers/spree/admin/mail_methods_controller_spec.rb +++ b/spec/controllers/spree/admin/mail_methods_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::MailMethodsController do diff --git a/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb b/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb index bc0c135505..4744bedb25 100644 --- a/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +++ b/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::Orders::CustomerDetailsController, type: :controller do diff --git a/spec/controllers/spree/admin/orders_controller_spec.rb b/spec/controllers/spree/admin/orders_controller_spec.rb index 0d10068f1e..301dea10c4 100644 --- a/spec/controllers/spree/admin/orders_controller_spec.rb +++ b/spec/controllers/spree/admin/orders_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::OrdersController, type: :controller do diff --git a/spec/controllers/spree/admin/overview_controller_spec.rb b/spec/controllers/spree/admin/overview_controller_spec.rb index 3c610b62cc..455f3b3ac9 100644 --- a/spec/controllers/spree/admin/overview_controller_spec.rb +++ b/spec/controllers/spree/admin/overview_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::OverviewController, type: :controller do diff --git a/spec/controllers/spree/admin/payment_methods_controller_spec.rb b/spec/controllers/spree/admin/payment_methods_controller_spec.rb index 4961be0877..128ef0c42e 100644 --- a/spec/controllers/spree/admin/payment_methods_controller_spec.rb +++ b/spec/controllers/spree/admin/payment_methods_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/controllers/spree/admin/products_controller_spec.rb b/spec/controllers/spree/admin/products_controller_spec.rb index b33198d14c..47acc6c0e8 100644 --- a/spec/controllers/spree/admin/products_controller_spec.rb +++ b/spec/controllers/spree/admin/products_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::ProductsController, type: :controller do diff --git a/spec/controllers/spree/admin/reports_controller_spec.rb b/spec/controllers/spree/admin/reports_controller_spec.rb index 9b72b5418f..f9a08038b5 100644 --- a/spec/controllers/spree/admin/reports_controller_spec.rb +++ b/spec/controllers/spree/admin/reports_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::ReportsController, type: :controller do diff --git a/spec/controllers/spree/admin/search_controller_spec.rb b/spec/controllers/spree/admin/search_controller_spec.rb index a6f8623b30..df5649dd35 100644 --- a/spec/controllers/spree/admin/search_controller_spec.rb +++ b/spec/controllers/spree/admin/search_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::SearchController, type: :controller do diff --git a/spec/controllers/spree/admin/shipping_methods_controller_spec.rb b/spec/controllers/spree/admin/shipping_methods_controller_spec.rb index 2c1fa2c0b6..9978248a46 100644 --- a/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +++ b/spec/controllers/spree/admin/shipping_methods_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::ShippingMethodsController, type: :controller do diff --git a/spec/controllers/spree/admin/users_controller_spec.rb b/spec/controllers/spree/admin/users_controller_spec.rb index 2a67433db3..a0b785382d 100644 --- a/spec/controllers/spree/admin/users_controller_spec.rb +++ b/spec/controllers/spree/admin/users_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::UsersController do diff --git a/spec/controllers/spree/admin/variants_controller_spec.rb b/spec/controllers/spree/admin/variants_controller_spec.rb index 6395a45e96..7d13264599 100644 --- a/spec/controllers/spree/admin/variants_controller_spec.rb +++ b/spec/controllers/spree/admin/variants_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/controllers/spree/credit_cards_controller_spec.rb b/spec/controllers/spree/credit_cards_controller_spec.rb index fd15916f0f..efa108a5c0 100644 --- a/spec/controllers/spree/credit_cards_controller_spec.rb +++ b/spec/controllers/spree/credit_cards_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::CreditCardsController, type: :controller do diff --git a/spec/controllers/spree/orders_controller_spec.rb b/spec/controllers/spree/orders_controller_spec.rb index fb194228e1..982eb01bf5 100644 --- a/spec/controllers/spree/orders_controller_spec.rb +++ b/spec/controllers/spree/orders_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::OrdersController, type: :controller do diff --git a/spec/controllers/spree/user_sessions_controller_spec.rb b/spec/controllers/spree/user_sessions_controller_spec.rb index d5bcff290c..fe4979266f 100644 --- a/spec/controllers/spree/user_sessions_controller_spec.rb +++ b/spec/controllers/spree/user_sessions_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::UserSessionsController, type: :controller do diff --git a/spec/controllers/spree/users_controller_spec.rb b/spec/controllers/spree/users_controller_spec.rb index 5210c1717a..8c5c6b80b1 100644 --- a/spec/controllers/spree/users_controller_spec.rb +++ b/spec/controllers/spree/users_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::UsersController, type: :controller do diff --git a/spec/controllers/stripe/callbacks_controller_spec.rb b/spec/controllers/stripe/callbacks_controller_spec.rb index 50c5433767..b1c4abcf2c 100644 --- a/spec/controllers/stripe/callbacks_controller_spec.rb +++ b/spec/controllers/stripe/callbacks_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Stripe::CallbacksController, type: :controller do diff --git a/spec/controllers/stripe/webhooks_controller_spec.rb b/spec/controllers/stripe/webhooks_controller_spec.rb index b5ab939137..437c10b55c 100644 --- a/spec/controllers/stripe/webhooks_controller_spec.rb +++ b/spec/controllers/stripe/webhooks_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Stripe::WebhooksController, type: :controller do diff --git a/spec/controllers/user_confirmations_controller_spec.rb b/spec/controllers/user_confirmations_controller_spec.rb index dacbfcb138..4a883087d1 100644 --- a/spec/controllers/user_confirmations_controller_spec.rb +++ b/spec/controllers/user_confirmations_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe UserConfirmationsController, type: :controller do diff --git a/spec/controllers/user_passwords_controller_spec.rb b/spec/controllers/user_passwords_controller_spec.rb index a546fddb96..72e399adf2 100644 --- a/spec/controllers/user_passwords_controller_spec.rb +++ b/spec/controllers/user_passwords_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe UserPasswordsController, type: :controller do diff --git a/spec/controllers/user_registrations_controller_spec.rb b/spec/controllers/user_registrations_controller_spec.rb index 8eac9fc200..b659266c64 100644 --- a/spec/controllers/user_registrations_controller_spec.rb +++ b/spec/controllers/user_registrations_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe UserRegistrationsController, type: :controller do diff --git a/spec/factories.rb b/spec/factories.rb index 391acf15bc..73cbb38348 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'ffaker' FactoryBot.define do diff --git a/spec/factories/address_factory.rb b/spec/factories/address_factory.rb index 93e8ae219f..9ab43be4bf 100644 --- a/spec/factories/address_factory.rb +++ b/spec/factories/address_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :address, aliases: [:bill_address, :ship_address], class: Spree::Address do firstname 'John' diff --git a/spec/factories/calculated_adjustment_factory.rb b/spec/factories/calculated_adjustment_factory.rb index ff43d2eaf2..e2f7386c6c 100644 --- a/spec/factories/calculated_adjustment_factory.rb +++ b/spec/factories/calculated_adjustment_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :calculator_flat_rate, class: Calculator::FlatRate do preferred_amount { generate(:calculator_amount) } diff --git a/spec/factories/calculator_factory.rb b/spec/factories/calculator_factory.rb index a05434f424..3142de884c 100644 --- a/spec/factories/calculator_factory.rb +++ b/spec/factories/calculator_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :calculator, class: Calculator::FlatRate do after(:create) { |c| c.set_preference(:amount, 10.0) } diff --git a/spec/factories/enterprise_factory.rb b/spec/factories/enterprise_factory.rb index 2e949eb699..dce7d218e8 100644 --- a/spec/factories/enterprise_factory.rb +++ b/spec/factories/enterprise_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :enterprise, class: Enterprise do transient do diff --git a/spec/factories/order_cycle_factory.rb b/spec/factories/order_cycle_factory.rb index 5530d43ff5..20018a175e 100644 --- a/spec/factories/order_cycle_factory.rb +++ b/spec/factories/order_cycle_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :order_cycle, parent: :simple_order_cycle do coordinator_fees { [create(:enterprise_fee, enterprise: coordinator)] } diff --git a/spec/factories/order_factory.rb b/spec/factories/order_factory.rb index fde8605c1c..c17a9d8427 100644 --- a/spec/factories/order_factory.rb +++ b/spec/factories/order_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :order, class: Spree::Order do transient do diff --git a/spec/factories/price_factory.rb b/spec/factories/price_factory.rb index fe84e5c8f5..ccb8b886b3 100644 --- a/spec/factories/price_factory.rb +++ b/spec/factories/price_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :price, class: Spree::Price do variant diff --git a/spec/factories/product_factory.rb b/spec/factories/product_factory.rb index f13cad00ba..3fd1df2527 100644 --- a/spec/factories/product_factory.rb +++ b/spec/factories/product_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :base_product, class: Spree::Product do sequence(:name) { |n| "Product ##{n} - #{Kernel.rand(9999)}" } diff --git a/spec/factories/return_authorization_factory.rb b/spec/factories/return_authorization_factory.rb index ad77351a40..5f3f3245b7 100644 --- a/spec/factories/return_authorization_factory.rb +++ b/spec/factories/return_authorization_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :return_authorization, class: Spree::ReturnAuthorization do number '100' diff --git a/spec/factories/shipment_factory.rb b/spec/factories/shipment_factory.rb index ef167d5837..cc062b2740 100644 --- a/spec/factories/shipment_factory.rb +++ b/spec/factories/shipment_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :shipment, class: Spree::Shipment do # keeps test shipments unique per order diff --git a/spec/factories/shipping_method_factory.rb b/spec/factories/shipping_method_factory.rb index aae807d226..900830f9d2 100644 --- a/spec/factories/shipping_method_factory.rb +++ b/spec/factories/shipping_method_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :base_shipping_method, class: Spree::ShippingMethod do zones { [] } diff --git a/spec/factories/state_factory.rb b/spec/factories/state_factory.rb index d1106e2795..6540f90a12 100644 --- a/spec/factories/state_factory.rb +++ b/spec/factories/state_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :state, class: Spree::State do name 'Alabama' diff --git a/spec/factories/stock_movement_factory.rb b/spec/factories/stock_movement_factory.rb index b2eb1cd65e..22ffb95a8d 100644 --- a/spec/factories/stock_movement_factory.rb +++ b/spec/factories/stock_movement_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :stock_movement, class: Spree::StockMovement do quantity 1 diff --git a/spec/factories/subscription_factory.rb b/spec/factories/subscription_factory.rb index c10110fe72..8f288d46a8 100644 --- a/spec/factories/subscription_factory.rb +++ b/spec/factories/subscription_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :subscription, class: Subscription do shop { create :enterprise } diff --git a/spec/factories/tag_rule_factory.rb b/spec/factories/tag_rule_factory.rb index bcfa1783d8..0dbdc6a208 100644 --- a/spec/factories/tag_rule_factory.rb +++ b/spec/factories/tag_rule_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :filter_order_cycles_tag_rule, class: TagRule::FilterOrderCycles do enterprise factory: :distributor_enterprise diff --git a/spec/factories/user_factory.rb b/spec/factories/user_factory.rb index 3896b7812c..48303eb0bd 100644 --- a/spec/factories/user_factory.rb +++ b/spec/factories/user_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do sequence :user_authentication_token do |n| "xxxx#{Time.now.to_i}#{rand(1000)}#{n}xxxxxxxxxxxxx" diff --git a/spec/factories/variant_factory.rb b/spec/factories/variant_factory.rb index 5d477a5603..06a4c1f9f8 100644 --- a/spec/factories/variant_factory.rb +++ b/spec/factories/variant_factory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do sequence(:random_float) { BigDecimal("#{rand(200)}.#{rand(99)}") } diff --git a/spec/features/admin/adjustments_spec.rb b/spec/features/admin/adjustments_spec.rb index 5911e602c5..ac0a39579a 100644 --- a/spec/features/admin/adjustments_spec.rb +++ b/spec/features/admin/adjustments_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature ' diff --git a/spec/features/admin/authentication_spec.rb b/spec/features/admin/authentication_spec.rb index f9401ad192..f3ab3f1bc9 100644 --- a/spec/features/admin/authentication_spec.rb +++ b/spec/features/admin/authentication_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Authentication", js: true do diff --git a/spec/features/admin/bulk_order_management_spec.rb b/spec/features/admin/bulk_order_management_spec.rb index 383e31806e..9c6f8fbf13 100644 --- a/spec/features/admin/bulk_order_management_spec.rb +++ b/spec/features/admin/bulk_order_management_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/bulk_product_update_spec.rb b/spec/features/admin/bulk_product_update_spec.rb index f0226d1a61..93c1aa9823 100644 --- a/spec/features/admin/bulk_product_update_spec.rb +++ b/spec/features/admin/bulk_product_update_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/configuration/content_spec.rb b/spec/features/admin/configuration/content_spec.rb index 8ef12213ad..b7cd4874f1 100644 --- a/spec/features/admin/configuration/content_spec.rb +++ b/spec/features/admin/configuration/content_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe " diff --git a/spec/features/admin/configuration/general_settings_spec.rb b/spec/features/admin/configuration/general_settings_spec.rb index 7a9299a634..6c5b70a4ba 100644 --- a/spec/features/admin/configuration/general_settings_spec.rb +++ b/spec/features/admin/configuration/general_settings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "General Settings" do diff --git a/spec/features/admin/configuration/mail_methods_spec.rb b/spec/features/admin/configuration/mail_methods_spec.rb index 27d044d894..e15b13502b 100644 --- a/spec/features/admin/configuration/mail_methods_spec.rb +++ b/spec/features/admin/configuration/mail_methods_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "Mail Methods" do diff --git a/spec/features/admin/configuration/states_spec.rb b/spec/features/admin/configuration/states_spec.rb index 9cbb51bdde..90292a1708 100755 --- a/spec/features/admin/configuration/states_spec.rb +++ b/spec/features/admin/configuration/states_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "States" do diff --git a/spec/features/admin/configuration/tax_categories_spec.rb b/spec/features/admin/configuration/tax_categories_spec.rb index 4ab3ab8956..5e699c9e21 100644 --- a/spec/features/admin/configuration/tax_categories_spec.rb +++ b/spec/features/admin/configuration/tax_categories_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "Tax Categories" do diff --git a/spec/features/admin/configuration/tax_rates_spec.rb b/spec/features/admin/configuration/tax_rates_spec.rb index cdf6155c04..b6bf97fc5b 100644 --- a/spec/features/admin/configuration/tax_rates_spec.rb +++ b/spec/features/admin/configuration/tax_rates_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "Tax Rates" do diff --git a/spec/features/admin/configuration/taxonomies_spec.rb b/spec/features/admin/configuration/taxonomies_spec.rb index e4c4d5da69..a37be64c31 100644 --- a/spec/features/admin/configuration/taxonomies_spec.rb +++ b/spec/features/admin/configuration/taxonomies_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "Taxonomies" do diff --git a/spec/features/admin/configuration/zones_spec.rb b/spec/features/admin/configuration/zones_spec.rb index f96229a1db..61df2c5ea6 100644 --- a/spec/features/admin/configuration/zones_spec.rb +++ b/spec/features/admin/configuration/zones_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "Zones" do diff --git a/spec/features/admin/customers_spec.rb b/spec/features/admin/customers_spec.rb index 957164aeb0..fe428fed00 100644 --- a/spec/features/admin/customers_spec.rb +++ b/spec/features/admin/customers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Customers' do diff --git a/spec/features/admin/enterprise_fees_spec.rb b/spec/features/admin/enterprise_fees_spec.rb index a525ae854a..862a338f15 100644 --- a/spec/features/admin/enterprise_fees_spec.rb +++ b/spec/features/admin/enterprise_fees_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/enterprise_groups_spec.rb b/spec/features/admin/enterprise_groups_spec.rb index 09fd820e2d..e702f98cd5 100644 --- a/spec/features/admin/enterprise_groups_spec.rb +++ b/spec/features/admin/enterprise_groups_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/enterprise_relationships_spec.rb b/spec/features/admin/enterprise_relationships_spec.rb index 3dd00acbae..b99341fb46 100644 --- a/spec/features/admin/enterprise_relationships_spec.rb +++ b/spec/features/admin/enterprise_relationships_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/enterprise_roles_spec.rb b/spec/features/admin/enterprise_roles_spec.rb index 311f99728f..0e0cbd5237 100644 --- a/spec/features/admin/enterprise_roles_spec.rb +++ b/spec/features/admin/enterprise_roles_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/enterprise_user_spec.rb b/spec/features/admin/enterprise_user_spec.rb index 30b3907970..4f3ca747e5 100644 --- a/spec/features/admin/enterprise_user_spec.rb +++ b/spec/features/admin/enterprise_user_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature ' diff --git a/spec/features/admin/enterprises/index_spec.rb b/spec/features/admin/enterprises/index_spec.rb index e06f9dfb0d..a79fbaab3c 100644 --- a/spec/features/admin/enterprises/index_spec.rb +++ b/spec/features/admin/enterprises/index_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Enterprises Index' do diff --git a/spec/features/admin/enterprises_spec.rb b/spec/features/admin/enterprises_spec.rb index f47a43d150..3f87f2dbed 100644 --- a/spec/features/admin/enterprises_spec.rb +++ b/spec/features/admin/enterprises_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature ' diff --git a/spec/features/admin/external_services_spec.rb b/spec/features/admin/external_services_spec.rb index ceeef4c556..e4ec773840 100644 --- a/spec/features/admin/external_services_spec.rb +++ b/spec/features/admin/external_services_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'External services' do diff --git a/spec/features/admin/multilingual_spec.rb b/spec/features/admin/multilingual_spec.rb index 32e4684936..17ebb82615 100644 --- a/spec/features/admin/multilingual_spec.rb +++ b/spec/features/admin/multilingual_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Multilingual', js: true do diff --git a/spec/features/admin/overview_spec.rb b/spec/features/admin/overview_spec.rb index d7e5ef7d6d..5c72bb5e5f 100644 --- a/spec/features/admin/overview_spec.rb +++ b/spec/features/admin/overview_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/payment_method_spec.rb b/spec/features/admin/payment_method_spec.rb index b40674066e..39eec867a1 100644 --- a/spec/features/admin/payment_method_spec.rb +++ b/spec/features/admin/payment_method_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature ' diff --git a/spec/features/admin/payments_spec.rb b/spec/features/admin/payments_spec.rb index 677b047045..2c670c44ee 100644 --- a/spec/features/admin/payments_spec.rb +++ b/spec/features/admin/payments_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/admin/product_import_spec.rb b/spec/features/admin/product_import_spec.rb index c40c235cfd..876d272ad6 100644 --- a/spec/features/admin/product_import_spec.rb +++ b/spec/features/admin/product_import_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/permissions' diff --git a/spec/features/admin/products_spec.rb b/spec/features/admin/products_spec.rb index c5474a4f2e..60adf49939 100644 --- a/spec/features/admin/products_spec.rb +++ b/spec/features/admin/products_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature ' diff --git a/spec/features/admin/reports/packing_report_spec.rb b/spec/features/admin/reports/packing_report_spec.rb index 41035bada1..62455df53c 100644 --- a/spec/features/admin/reports/packing_report_spec.rb +++ b/spec/features/admin/reports/packing_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature "Packing Reports", js: true do diff --git a/spec/features/admin/reports_spec.rb b/spec/features/admin/reports_spec.rb index 265d8cb97d..fe5df92355 100644 --- a/spec/features/admin/reports_spec.rb +++ b/spec/features/admin/reports_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature ' diff --git a/spec/features/admin/schedules_spec.rb b/spec/features/admin/schedules_spec.rb index 41c963e403..52745000bb 100644 --- a/spec/features/admin/schedules_spec.rb +++ b/spec/features/admin/schedules_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Schedules', js: true do diff --git a/spec/features/admin/shipping_methods_spec.rb b/spec/features/admin/shipping_methods_spec.rb index ed566778e9..a2aa27b729 100644 --- a/spec/features/admin/shipping_methods_spec.rb +++ b/spec/features/admin/shipping_methods_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'shipping methods' do diff --git a/spec/features/admin/subscriptions_spec.rb b/spec/features/admin/subscriptions_spec.rb index 1c53cb0f21..cd54157e3d 100644 --- a/spec/features/admin/subscriptions_spec.rb +++ b/spec/features/admin/subscriptions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Subscriptions' do diff --git a/spec/features/admin/tag_rules_spec.rb b/spec/features/admin/tag_rules_spec.rb index 8ed520362e..eef5e53e83 100644 --- a/spec/features/admin/tag_rules_spec.rb +++ b/spec/features/admin/tag_rules_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Tag Rules', js: true do diff --git a/spec/features/admin/tax_settings_spec.rb b/spec/features/admin/tax_settings_spec.rb index 5da7384c55..bbe8155bbf 100644 --- a/spec/features/admin/tax_settings_spec.rb +++ b/spec/features/admin/tax_settings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Account and Billing Settings' do diff --git a/spec/features/admin/users_spec.rb b/spec/features/admin/users_spec.rb index 10efd1e4d2..4bfffc3429 100644 --- a/spec/features/admin/users_spec.rb +++ b/spec/features/admin/users_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature "Managing users" do diff --git a/spec/features/admin/variant_overrides_spec.rb b/spec/features/admin/variant_overrides_spec.rb index d28147818f..fcf5931c73 100644 --- a/spec/features/admin/variant_overrides_spec.rb +++ b/spec/features/admin/variant_overrides_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature " diff --git a/spec/features/admin/variants_spec.rb b/spec/features/admin/variants_spec.rb index e92e67d557..ad00a40443 100644 --- a/spec/features/admin/variants_spec.rb +++ b/spec/features/admin/variants_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/consumer/account/cards_spec.rb b/spec/features/consumer/account/cards_spec.rb index a65cdd045e..8b7f157a14 100644 --- a/spec/features/consumer/account/cards_spec.rb +++ b/spec/features/consumer/account/cards_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Credit Cards", js: true do diff --git a/spec/features/consumer/account/settings_spec.rb b/spec/features/consumer/account/settings_spec.rb index 86c952091d..11dee72750 100644 --- a/spec/features/consumer/account/settings_spec.rb +++ b/spec/features/consumer/account/settings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Account Settings", js: true do diff --git a/spec/features/consumer/account_spec.rb b/spec/features/consumer/account_spec.rb index 401c8fbd33..a721235773 100644 --- a/spec/features/consumer/account_spec.rb +++ b/spec/features/consumer/account_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/consumer/authentication_spec.rb b/spec/features/consumer/authentication_spec.rb index 50c9974a49..3b06f3a97a 100644 --- a/spec/features/consumer/authentication_spec.rb +++ b/spec/features/consumer/authentication_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Authentication", js: true do diff --git a/spec/features/consumer/confirm_invitation_spec.rb b/spec/features/consumer/confirm_invitation_spec.rb index 43645a9e31..967ecfb5fe 100644 --- a/spec/features/consumer/confirm_invitation_spec.rb +++ b/spec/features/consumer/confirm_invitation_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature "Confirm invitation as manager" do diff --git a/spec/features/consumer/footer_links_spec.rb b/spec/features/consumer/footer_links_spec.rb index 80bfec90f7..be5598daa8 100644 --- a/spec/features/consumer/footer_links_spec.rb +++ b/spec/features/consumer/footer_links_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Footer Links", js: true do diff --git a/spec/features/consumer/groups_spec.rb b/spec/features/consumer/groups_spec.rb index 3284b709c8..287804726b 100644 --- a/spec/features/consumer/groups_spec.rb +++ b/spec/features/consumer/groups_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Groups', js: true do diff --git a/spec/features/consumer/multilingual_spec.rb b/spec/features/consumer/multilingual_spec.rb index c70b2168e4..60ccc35533 100644 --- a/spec/features/consumer/multilingual_spec.rb +++ b/spec/features/consumer/multilingual_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Multilingual', js: true do diff --git a/spec/features/consumer/producers_spec.rb b/spec/features/consumer/producers_spec.rb index f9e03d5f87..cdddd16cce 100644 --- a/spec/features/consumer/producers_spec.rb +++ b/spec/features/consumer/producers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature ' diff --git a/spec/features/consumer/registration_spec.rb b/spec/features/consumer/registration_spec.rb index 3d7cbb0a0f..e3557c88ab 100644 --- a/spec/features/consumer/registration_spec.rb +++ b/spec/features/consumer/registration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Registration", js: true do diff --git a/spec/features/consumer/shopping/cart_spec.rb b/spec/features/consumer/shopping/cart_spec.rb index d702ce7067..d6c8a7909c 100644 --- a/spec/features/consumer/shopping/cart_spec.rb +++ b/spec/features/consumer/shopping/cart_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "full-page cart", js: true do diff --git a/spec/features/consumer/shopping/checkout_auth_spec.rb b/spec/features/consumer/shopping/checkout_auth_spec.rb index a6986467e8..7bbb6e8922 100644 --- a/spec/features/consumer/shopping/checkout_auth_spec.rb +++ b/spec/features/consumer/shopping/checkout_auth_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "As a consumer I want to check out my cart", js: true do diff --git a/spec/features/consumer/shopping/checkout_paypal_spec.rb b/spec/features/consumer/shopping/checkout_paypal_spec.rb index fc710e77f3..4e8f6dce30 100644 --- a/spec/features/consumer/shopping/checkout_paypal_spec.rb +++ b/spec/features/consumer/shopping/checkout_paypal_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" feature "Check out with Paypal", js: true do diff --git a/spec/features/consumer/shopping/checkout_spec.rb b/spec/features/consumer/shopping/checkout_spec.rb index bedabaa2c3..4ed2f2e262 100644 --- a/spec/features/consumer/shopping/checkout_spec.rb +++ b/spec/features/consumer/shopping/checkout_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "As a consumer I want to check out my cart", js: true do diff --git a/spec/features/consumer/shopping/embedded_groups_spec.rb b/spec/features/consumer/shopping/embedded_groups_spec.rb index f64749cacc..2b3c21827c 100644 --- a/spec/features/consumer/shopping/embedded_groups_spec.rb +++ b/spec/features/consumer/shopping/embedded_groups_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Using embedded shopfront functionality", js: true do diff --git a/spec/features/consumer/shopping/embedded_shopfronts_spec.rb b/spec/features/consumer/shopping/embedded_shopfronts_spec.rb index 506845718e..66f7059b0b 100644 --- a/spec/features/consumer/shopping/embedded_shopfronts_spec.rb +++ b/spec/features/consumer/shopping/embedded_shopfronts_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Using embedded shopfront functionality", js: true do diff --git a/spec/features/consumer/shopping/orders_spec.rb b/spec/features/consumer/shopping/orders_spec.rb index f7b0a832c5..f13269f9da 100644 --- a/spec/features/consumer/shopping/orders_spec.rb +++ b/spec/features/consumer/shopping/orders_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "Order Management", js: true do diff --git a/spec/features/consumer/shopping/products_spec.rb b/spec/features/consumer/shopping/products_spec.rb index 91393e3213..0d7eb3f9b1 100644 --- a/spec/features/consumer/shopping/products_spec.rb +++ b/spec/features/consumer/shopping/products_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "As a consumer I want to view products", js: true do diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/features/consumer/shopping/shopping_spec.rb index 385f5581f9..8dfa95a080 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/features/consumer/shopping/shopping_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "As a consumer I want to shop with a distributor", js: true do diff --git a/spec/features/consumer/shopping/variant_overrides_spec.rb b/spec/features/consumer/shopping/variant_overrides_spec.rb index f572ddca99..4eefb7c114 100644 --- a/spec/features/consumer/shopping/variant_overrides_spec.rb +++ b/spec/features/consumer/shopping/variant_overrides_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature "shopping with variant overrides defined", js: true do diff --git a/spec/features/consumer/shops_spec.rb b/spec/features/consumer/shops_spec.rb index 80483840fc..fbe27069f1 100644 --- a/spec/features/consumer/shops_spec.rb +++ b/spec/features/consumer/shops_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Shops', js: true do diff --git a/spec/features/consumer/sitemap_spec.rb b/spec/features/consumer/sitemap_spec.rb index 6ec913de32..0cee66553f 100644 --- a/spec/features/consumer/sitemap_spec.rb +++ b/spec/features/consumer/sitemap_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'sitemap' do diff --git a/spec/helpers/admin/orders_helper_spec.rb b/spec/helpers/admin/orders_helper_spec.rb index 6245e7ec62..79c3273687 100644 --- a/spec/helpers/admin/orders_helper_spec.rb +++ b/spec/helpers/admin/orders_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe Admin::OrdersHelper, type: :helper do diff --git a/spec/helpers/admin/subscriptions_helper_spec.rb b/spec/helpers/admin/subscriptions_helper_spec.rb index db8866488a..00b4c973e9 100644 --- a/spec/helpers/admin/subscriptions_helper_spec.rb +++ b/spec/helpers/admin/subscriptions_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Admin::SubscriptionsHelper, type: :helper do diff --git a/spec/helpers/checkout_helper_spec.rb b/spec/helpers/checkout_helper_spec.rb index 17d6911e6e..6665af4458 100644 --- a/spec/helpers/checkout_helper_spec.rb +++ b/spec/helpers/checkout_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe CheckoutHelper, type: :helper do diff --git a/spec/helpers/enterprises_helper_spec.rb b/spec/helpers/enterprises_helper_spec.rb index 27cc9d4dc0..22e7decd57 100644 --- a/spec/helpers/enterprises_helper_spec.rb +++ b/spec/helpers/enterprises_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe EnterprisesHelper, type: :helper do diff --git a/spec/helpers/groups_helper_spec.rb b/spec/helpers/groups_helper_spec.rb index 8220a12507..79b62b402b 100644 --- a/spec/helpers/groups_helper_spec.rb +++ b/spec/helpers/groups_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe GroupsHelper, type: :helper do diff --git a/spec/helpers/i18n_helper_spec.rb b/spec/helpers/i18n_helper_spec.rb index fba8ab882b..f12f0032d0 100644 --- a/spec/helpers/i18n_helper_spec.rb +++ b/spec/helpers/i18n_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe I18nHelper, type: :helper do diff --git a/spec/helpers/injection_helper_spec.rb b/spec/helpers/injection_helper_spec.rb index e7e0c396b1..ecc7b100eb 100644 --- a/spec/helpers/injection_helper_spec.rb +++ b/spec/helpers/injection_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe InjectionHelper, type: :helper do diff --git a/spec/helpers/navigation_helper_spec.rb b/spec/helpers/navigation_helper_spec.rb index 4997211727..90199a1fe6 100644 --- a/spec/helpers/navigation_helper_spec.rb +++ b/spec/helpers/navigation_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/helpers/order_cycles_helper_spec.rb b/spec/helpers/order_cycles_helper_spec.rb index 5e4f852297..c9687452c7 100644 --- a/spec/helpers/order_cycles_helper_spec.rb +++ b/spec/helpers/order_cycles_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderCyclesHelper, type: :helper do diff --git a/spec/helpers/serializer_helper_spec.rb b/spec/helpers/serializer_helper_spec.rb index 2cc66073f3..16822b89a0 100644 --- a/spec/helpers/serializer_helper_spec.rb +++ b/spec/helpers/serializer_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe SerializerHelper, type: :helper do diff --git a/spec/helpers/shared_helper_spec.rb b/spec/helpers/shared_helper_spec.rb index 1a2fced894..7d61898f93 100644 --- a/spec/helpers/shared_helper_spec.rb +++ b/spec/helpers/shared_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe SharedHelper, type: :helper do diff --git a/spec/helpers/shop_helper_spec.rb b/spec/helpers/shop_helper_spec.rb index 03a52ba0f6..6b245d8e29 100644 --- a/spec/helpers/shop_helper_spec.rb +++ b/spec/helpers/shop_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ShopHelper, type: :helper do it "should build order cycle select options" do diff --git a/spec/helpers/spree/admin/base_helper_spec.rb b/spec/helpers/spree/admin/base_helper_spec.rb index 0b273e240e..bfaadc53a4 100644 --- a/spec/helpers/spree/admin/base_helper_spec.rb +++ b/spec/helpers/spree/admin/base_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::BaseHelper, type: :helper do diff --git a/spec/helpers/spree/admin/orders_helper_spec.rb b/spec/helpers/spree/admin/orders_helper_spec.rb index deaf4c6daa..8d1384efa8 100644 --- a/spec/helpers/spree/admin/orders_helper_spec.rb +++ b/spec/helpers/spree/admin/orders_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Admin::OrdersHelper, type: :helper do diff --git a/spec/helpers/spree/orders_helper_spec.rb b/spec/helpers/spree/orders_helper_spec.rb index 4def72324d..1b47d33a0e 100644 --- a/spec/helpers/spree/orders_helper_spec.rb +++ b/spec/helpers/spree/orders_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::OrdersHelper, type: :helper do diff --git a/spec/jobs/confirm_order_job_spec.rb b/spec/jobs/confirm_order_job_spec.rb index 61e34f0257..f11d3e2c7c 100644 --- a/spec/jobs/confirm_order_job_spec.rb +++ b/spec/jobs/confirm_order_job_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ConfirmOrderJob do diff --git a/spec/jobs/confirm_signup_job_spec.rb b/spec/jobs/confirm_signup_job_spec.rb index aafbcb016a..ca45fda1ed 100644 --- a/spec/jobs/confirm_signup_job_spec.rb +++ b/spec/jobs/confirm_signup_job_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ConfirmSignupJob do diff --git a/spec/jobs/heartbeat_job_spec.rb b/spec/jobs/heartbeat_job_spec.rb index a21760d3c8..9a345f9834 100644 --- a/spec/jobs/heartbeat_job_spec.rb +++ b/spec/jobs/heartbeat_job_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe HeartbeatJob do diff --git a/spec/jobs/order_cycle_notification_job_spec.rb b/spec/jobs/order_cycle_notification_job_spec.rb index 06092433ee..3073433b1e 100644 --- a/spec/jobs/order_cycle_notification_job_spec.rb +++ b/spec/jobs/order_cycle_notification_job_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderCycleNotificationJob do diff --git a/spec/jobs/subscription_confirm_job_spec.rb b/spec/jobs/subscription_confirm_job_spec.rb index 87b3db0fd9..4cc3f521b0 100644 --- a/spec/jobs/subscription_confirm_job_spec.rb +++ b/spec/jobs/subscription_confirm_job_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe SubscriptionConfirmJob do diff --git a/spec/jobs/subscription_placement_job_spec.rb b/spec/jobs/subscription_placement_job_spec.rb index fc7ca9177c..d1c957a269 100644 --- a/spec/jobs/subscription_placement_job_spec.rb +++ b/spec/jobs/subscription_placement_job_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe SubscriptionPlacementJob do diff --git a/spec/jobs/welcome_enterprise_job_spec.rb b/spec/jobs/welcome_enterprise_job_spec.rb index 6cdb295e49..6aa4c5609d 100644 --- a/spec/jobs/welcome_enterprise_job_spec.rb +++ b/spec/jobs/welcome_enterprise_job_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe WelcomeEnterpriseJob do diff --git a/spec/lib/open_food_network/address_finder_spec.rb b/spec/lib/open_food_network/address_finder_spec.rb index e192aa1dab..51e4b1a11e 100644 --- a/spec/lib/open_food_network/address_finder_spec.rb +++ b/spec/lib/open_food_network/address_finder_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/address_finder' diff --git a/spec/lib/open_food_network/customers_report_spec.rb b/spec/lib/open_food_network/customers_report_spec.rb index 5da874773d..cd02dacd34 100644 --- a/spec/lib/open_food_network/customers_report_spec.rb +++ b/spec/lib/open_food_network/customers_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/customers_report' diff --git a/spec/lib/open_food_network/enterprise_fee_applicator_spec.rb b/spec/lib/open_food_network/enterprise_fee_applicator_spec.rb index 8421b0616d..6ea5597ddc 100644 --- a/spec/lib/open_food_network/enterprise_fee_applicator_spec.rb +++ b/spec/lib/open_food_network/enterprise_fee_applicator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/enterprise_fee_applicator' diff --git a/spec/lib/open_food_network/enterprise_fee_calculator_spec.rb b/spec/lib/open_food_network/enterprise_fee_calculator_spec.rb index 2f613393f9..0dc9b121b4 100644 --- a/spec/lib/open_food_network/enterprise_fee_calculator_spec.rb +++ b/spec/lib/open_food_network/enterprise_fee_calculator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/enterprise_fee_calculator' diff --git a/spec/lib/open_food_network/enterprise_issue_validator_spec.rb b/spec/lib/open_food_network/enterprise_issue_validator_spec.rb index c7ee1bfbe7..617b9ec73c 100644 --- a/spec/lib/open_food_network/enterprise_issue_validator_spec.rb +++ b/spec/lib/open_food_network/enterprise_issue_validator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/enterprise_issue_validator' diff --git a/spec/lib/open_food_network/error_logger_spec.rb b/spec/lib/open_food_network/error_logger_spec.rb index f1cd326fa2..88afdeede2 100644 --- a/spec/lib/open_food_network/error_logger_spec.rb +++ b/spec/lib/open_food_network/error_logger_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/error_logger' diff --git a/spec/lib/open_food_network/feature_toggle_spec.rb b/spec/lib/open_food_network/feature_toggle_spec.rb index d07aa9db15..84956f556c 100644 --- a/spec/lib/open_food_network/feature_toggle_spec.rb +++ b/spec/lib/open_food_network/feature_toggle_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'open_food_network/feature_toggle' module OpenFoodNetwork diff --git a/spec/lib/open_food_network/group_buy_report_spec.rb b/spec/lib/open_food_network/group_buy_report_spec.rb index 8231b2da95..bdf9404f05 100644 --- a/spec/lib/open_food_network/group_buy_report_spec.rb +++ b/spec/lib/open_food_network/group_buy_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/group_buy_report' diff --git a/spec/lib/open_food_network/i18n_config_spec.rb b/spec/lib/open_food_network/i18n_config_spec.rb index 306566b5e8..198c0c0cdc 100644 --- a/spec/lib/open_food_network/i18n_config_spec.rb +++ b/spec/lib/open_food_network/i18n_config_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/i18n_config' diff --git a/spec/lib/open_food_network/lettuce_share_report_spec.rb b/spec/lib/open_food_network/lettuce_share_report_spec.rb index d4853f6be0..44605d186a 100644 --- a/spec/lib/open_food_network/lettuce_share_report_spec.rb +++ b/spec/lib/open_food_network/lettuce_share_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/lettuce_share_report' diff --git a/spec/lib/open_food_network/order_and_distributor_report_spec.rb b/spec/lib/open_food_network/order_and_distributor_report_spec.rb index 616af0fc6c..80bc46f913 100644 --- a/spec/lib/open_food_network/order_and_distributor_report_spec.rb +++ b/spec/lib/open_food_network/order_and_distributor_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/order_and_distributor_report' diff --git a/spec/lib/open_food_network/order_cycle_form_applicator_spec.rb b/spec/lib/open_food_network/order_cycle_form_applicator_spec.rb index 94742455e3..befa035486 100644 --- a/spec/lib/open_food_network/order_cycle_form_applicator_spec.rb +++ b/spec/lib/open_food_network/order_cycle_form_applicator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require 'open_food_network/order_cycle_form_applicator' diff --git a/spec/lib/open_food_network/order_cycle_management_report_spec.rb b/spec/lib/open_food_network/order_cycle_management_report_spec.rb index e0214b732a..c11c751df9 100644 --- a/spec/lib/open_food_network/order_cycle_management_report_spec.rb +++ b/spec/lib/open_food_network/order_cycle_management_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/order_cycle_management_report' diff --git a/spec/lib/open_food_network/order_cycle_permissions_spec.rb b/spec/lib/open_food_network/order_cycle_permissions_spec.rb index 930239f410..715fcef5c0 100644 --- a/spec/lib/open_food_network/order_cycle_permissions_spec.rb +++ b/spec/lib/open_food_network/order_cycle_permissions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/order_cycle_permissions' diff --git a/spec/lib/open_food_network/order_grouper_spec.rb b/spec/lib/open_food_network/order_grouper_spec.rb index a428d6a90f..734d906c0d 100644 --- a/spec/lib/open_food_network/order_grouper_spec.rb +++ b/spec/lib/open_food_network/order_grouper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/order_grouper' diff --git a/spec/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report_spec.rb b/spec/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report_spec.rb index 882853ce7d..8f4a7f6a21 100644 --- a/spec/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report_spec.rb +++ b/spec/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" require 'open_food_network/orders_and_fulfillments_report' require 'open_food_network/orders_and_fulfillments_report/customer_totals_report' diff --git a/spec/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report_spec.rb b/spec/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report_spec.rb index b44e36cede..7c5975eb7a 100644 --- a/spec/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report_spec.rb +++ b/spec/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report' diff --git a/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report_spec.rb b/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report_spec.rb index 92f3d00bbe..2ad62ba230 100644 --- a/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report_spec.rb +++ b/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report' diff --git a/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report_spec.rb b/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report_spec.rb index 0f4a7b1151..a3ec8baea9 100644 --- a/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report_spec.rb +++ b/spec/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/orders_and_fulfillments_report/supplier_totals_report' diff --git a/spec/lib/open_food_network/orders_and_fulfillments_report_spec.rb b/spec/lib/open_food_network/orders_and_fulfillments_report_spec.rb index fb1da5545f..88abc87c69 100644 --- a/spec/lib/open_food_network/orders_and_fulfillments_report_spec.rb +++ b/spec/lib/open_food_network/orders_and_fulfillments_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/orders_and_fulfillments_report' require 'open_food_network/order_grouper' diff --git a/spec/lib/open_food_network/packing_report_spec.rb b/spec/lib/open_food_network/packing_report_spec.rb index b864a27508..587f6d2d2a 100644 --- a/spec/lib/open_food_network/packing_report_spec.rb +++ b/spec/lib/open_food_network/packing_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/packing_report' diff --git a/spec/lib/open_food_network/permissions_spec.rb b/spec/lib/open_food_network/permissions_spec.rb index 83d6de78ae..867437b7f1 100644 --- a/spec/lib/open_food_network/permissions_spec.rb +++ b/spec/lib/open_food_network/permissions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/permissions' diff --git a/spec/lib/open_food_network/products_and_inventory_report_spec.rb b/spec/lib/open_food_network/products_and_inventory_report_spec.rb index f0844dfffb..a9a3cd7715 100644 --- a/spec/lib/open_food_network/products_and_inventory_report_spec.rb +++ b/spec/lib/open_food_network/products_and_inventory_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/products_and_inventory_report' diff --git a/spec/lib/open_food_network/property_merge_spec.rb b/spec/lib/open_food_network/property_merge_spec.rb index 37568e706c..cd139188be 100644 --- a/spec/lib/open_food_network/property_merge_spec.rb +++ b/spec/lib/open_food_network/property_merge_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module OpenFoodNetwork diff --git a/spec/lib/open_food_network/referer_parser_spec.rb b/spec/lib/open_food_network/referer_parser_spec.rb index 58c677faf1..d8a9a8f265 100644 --- a/spec/lib/open_food_network/referer_parser_spec.rb +++ b/spec/lib/open_food_network/referer_parser_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'open_food_network/referer_parser' require 'spec_helper' diff --git a/spec/lib/open_food_network/sales_tax_report_spec.rb b/spec/lib/open_food_network/sales_tax_report_spec.rb index bf7e89e521..088f3ba47c 100644 --- a/spec/lib/open_food_network/sales_tax_report_spec.rb +++ b/spec/lib/open_food_network/sales_tax_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'open_food_network/sales_tax_report' module OpenFoodNetwork diff --git a/spec/lib/open_food_network/scope_variant_to_hub_spec.rb b/spec/lib/open_food_network/scope_variant_to_hub_spec.rb index 5bcd83a9d9..9f25e6788c 100644 --- a/spec/lib/open_food_network/scope_variant_to_hub_spec.rb +++ b/spec/lib/open_food_network/scope_variant_to_hub_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/scope_variant_to_hub' diff --git a/spec/lib/open_food_network/scope_variants_to_search_spec.rb b/spec/lib/open_food_network/scope_variants_to_search_spec.rb index 2d8270597e..3090f5daf9 100644 --- a/spec/lib/open_food_network/scope_variants_to_search_spec.rb +++ b/spec/lib/open_food_network/scope_variants_to_search_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'open_food_network/scope_variants_for_search' describe OpenFoodNetwork::ScopeVariantsForSearch do diff --git a/spec/lib/open_food_network/tag_rule_applicator_spec.rb b/spec/lib/open_food_network/tag_rule_applicator_spec.rb index 50d8bfe32d..7bc180a52c 100644 --- a/spec/lib/open_food_network/tag_rule_applicator_spec.rb +++ b/spec/lib/open_food_network/tag_rule_applicator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'open_food_network/tag_rule_applicator' require 'spec_helper' diff --git a/spec/lib/open_food_network/user_balance_calculator_spec.rb b/spec/lib/open_food_network/user_balance_calculator_spec.rb index ebc1ee1568..eccb70b7ab 100644 --- a/spec/lib/open_food_network/user_balance_calculator_spec.rb +++ b/spec/lib/open_food_network/user_balance_calculator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'open_food_network/user_balance_calculator' require 'spec_helper' diff --git a/spec/lib/open_food_network/users_and_enterprises_report_spec.rb b/spec/lib/open_food_network/users_and_enterprises_report_spec.rb index f7503d992c..7b8f827cb0 100644 --- a/spec/lib/open_food_network/users_and_enterprises_report_spec.rb +++ b/spec/lib/open_food_network/users_and_enterprises_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/users_and_enterprises_report' diff --git a/spec/lib/open_food_network/xero_invoices_report_spec.rb b/spec/lib/open_food_network/xero_invoices_report_spec.rb index cf2ef55a8a..0e746cbc74 100644 --- a/spec/lib/open_food_network/xero_invoices_report_spec.rb +++ b/spec/lib/open_food_network/xero_invoices_report_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/xero_invoices_report' diff --git a/spec/lib/spree/localized_number_spec.rb b/spec/lib/spree/localized_number_spec.rb index 6112b953fd..b13f8ddf6e 100644 --- a/spec/lib/spree/localized_number_spec.rb +++ b/spec/lib/spree/localized_number_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::LocalizedNumber do diff --git a/spec/lib/stripe/account_connector_spec.rb b/spec/lib/stripe/account_connector_spec.rb index 6b04b0fa1c..200485e840 100644 --- a/spec/lib/stripe/account_connector_spec.rb +++ b/spec/lib/stripe/account_connector_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'stripe/account_connector' require 'stripe/oauth' diff --git a/spec/lib/stripe/webhook_handler_spec.rb b/spec/lib/stripe/webhook_handler_spec.rb index e83cf01805..381d09f536 100644 --- a/spec/lib/stripe/webhook_handler_spec.rb +++ b/spec/lib/stripe/webhook_handler_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'stripe/webhook_handler' diff --git a/spec/lib/tasks/enterprises_rake_spec.rb b/spec/lib/tasks/enterprises_rake_spec.rb index 9fb1ef23f1..fca414cfe4 100644 --- a/spec/lib/tasks/enterprises_rake_spec.rb +++ b/spec/lib/tasks/enterprises_rake_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'rake' diff --git a/spec/lib/tasks/users_rake_spec.rb b/spec/lib/tasks/users_rake_spec.rb index a1876e79f3..9229d5b032 100644 --- a/spec/lib/tasks/users_rake_spec.rb +++ b/spec/lib/tasks/users_rake_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'rake' diff --git a/spec/mailers/enterprise_mailer_spec.rb b/spec/mailers/enterprise_mailer_spec.rb index 9c6477e872..d44b76bbd2 100644 --- a/spec/mailers/enterprise_mailer_spec.rb +++ b/spec/mailers/enterprise_mailer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe EnterpriseMailer do diff --git a/spec/mailers/producer_mailer_spec.rb b/spec/mailers/producer_mailer_spec.rb index 57c548f73e..7c4dad4f98 100644 --- a/spec/mailers/producer_mailer_spec.rb +++ b/spec/mailers/producer_mailer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'yaml' diff --git a/spec/mailers/subscription_mailer_spec.rb b/spec/mailers/subscription_mailer_spec.rb index 1f5a6e21bf..d2eabb2c13 100644 --- a/spec/mailers/subscription_mailer_spec.rb +++ b/spec/mailers/subscription_mailer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe SubscriptionMailer, type: :mailer do diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb index 8d4e5b40b9..6abdc009f9 100644 --- a/spec/mailers/user_mailer_spec.rb +++ b/spec/mailers/user_mailer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::UserMailer do diff --git a/spec/models/adjustment_metadata_spec.rb b/spec/models/adjustment_metadata_spec.rb index 2b5e3c86ae..13657826b4 100644 --- a/spec/models/adjustment_metadata_spec.rb +++ b/spec/models/adjustment_metadata_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe AdjustmentMetadata do diff --git a/spec/models/calculator/flat_percent_item_total_spec.rb b/spec/models/calculator/flat_percent_item_total_spec.rb index 37e6e41d1f..7d34211259 100644 --- a/spec/models/calculator/flat_percent_item_total_spec.rb +++ b/spec/models/calculator/flat_percent_item_total_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Calculator::FlatPercentItemTotal do diff --git a/spec/models/calculator/flat_percent_per_item_spec.rb b/spec/models/calculator/flat_percent_per_item_spec.rb index 8a2a962ef0..6f16a9fe6a 100644 --- a/spec/models/calculator/flat_percent_per_item_spec.rb +++ b/spec/models/calculator/flat_percent_per_item_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Calculator::FlatPercentPerItem do diff --git a/spec/models/calculator/flat_rate_spec.rb b/spec/models/calculator/flat_rate_spec.rb index 5036d6b180..cb0cce62d2 100644 --- a/spec/models/calculator/flat_rate_spec.rb +++ b/spec/models/calculator/flat_rate_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Calculator::FlatRate do diff --git a/spec/models/calculator/flexi_rate_spec.rb b/spec/models/calculator/flexi_rate_spec.rb index 8890a1847d..3f351fb94d 100644 --- a/spec/models/calculator/flexi_rate_spec.rb +++ b/spec/models/calculator/flexi_rate_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Calculator::FlexiRate do diff --git a/spec/models/calculator/per_item_spec.rb b/spec/models/calculator/per_item_spec.rb index 279447edae..cde6cae8f5 100644 --- a/spec/models/calculator/per_item_spec.rb +++ b/spec/models/calculator/per_item_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Calculator::PerItem do diff --git a/spec/models/calculator/price_sack_spec.rb b/spec/models/calculator/price_sack_spec.rb index 2f8cd8f22d..f37d614f3a 100644 --- a/spec/models/calculator/price_sack_spec.rb +++ b/spec/models/calculator/price_sack_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Calculator::PriceSack do diff --git a/spec/models/calculator/weight_spec.rb b/spec/models/calculator/weight_spec.rb index 1016af2eaa..4ca6d15ab5 100644 --- a/spec/models/calculator/weight_spec.rb +++ b/spec/models/calculator/weight_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Calculator::Weight do diff --git a/spec/models/column_preference_spec.rb b/spec/models/column_preference_spec.rb index 6cc56fc05f..1e9a1d8fce 100644 --- a/spec/models/column_preference_spec.rb +++ b/spec/models/column_preference_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ColumnPreference, type: :model do diff --git a/spec/models/concerns/order_shipment_spec.rb b/spec/models/concerns/order_shipment_spec.rb index 08c23f76fb..9d45f33d1b 100644 --- a/spec/models/concerns/order_shipment_spec.rb +++ b/spec/models/concerns/order_shipment_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderShipment do diff --git a/spec/models/concerns/product_stock_spec.rb b/spec/models/concerns/product_stock_spec.rb index 5b5a21efb4..450142dea9 100644 --- a/spec/models/concerns/product_stock_spec.rb +++ b/spec/models/concerns/product_stock_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe ProductStock do diff --git a/spec/models/concerns/variant_stock_spec.rb b/spec/models/concerns/variant_stock_spec.rb index 5bdb119047..daff2825fc 100644 --- a/spec/models/concerns/variant_stock_spec.rb +++ b/spec/models/concerns/variant_stock_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe VariantStock do diff --git a/spec/models/content_configuration_spec.rb b/spec/models/content_configuration_spec.rb index d9eaf960d4..8d2cc5a8d0 100644 --- a/spec/models/content_configuration_spec.rb +++ b/spec/models/content_configuration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ContentConfiguration do diff --git a/spec/models/customer_spec.rb b/spec/models/customer_spec.rb index 6a35547e1d..23ee0914e4 100644 --- a/spec/models/customer_spec.rb +++ b/spec/models/customer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Customer, type: :model do diff --git a/spec/models/enterprise_caching_spec.rb b/spec/models/enterprise_caching_spec.rb index 8cec4d5822..bfd241227e 100644 --- a/spec/models/enterprise_caching_spec.rb +++ b/spec/models/enterprise_caching_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Enterprise do diff --git a/spec/models/enterprise_fee_spec.rb b/spec/models/enterprise_fee_spec.rb index 903d22f757..7bd90db7c4 100644 --- a/spec/models/enterprise_fee_spec.rb +++ b/spec/models/enterprise_fee_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe EnterpriseFee do diff --git a/spec/models/enterprise_group_spec.rb b/spec/models/enterprise_group_spec.rb index 6e53349321..7aa145719c 100644 --- a/spec/models/enterprise_group_spec.rb +++ b/spec/models/enterprise_group_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe EnterpriseGroup do diff --git a/spec/models/enterprise_relationship_spec.rb b/spec/models/enterprise_relationship_spec.rb index 6a7560d09e..619bf4834a 100644 --- a/spec/models/enterprise_relationship_spec.rb +++ b/spec/models/enterprise_relationship_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe EnterpriseRelationship do diff --git a/spec/models/enterprise_spec.rb b/spec/models/enterprise_spec.rb index f202611ff5..9bf8944425 100644 --- a/spec/models/enterprise_spec.rb +++ b/spec/models/enterprise_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Enterprise do diff --git a/spec/models/exchange_spec.rb b/spec/models/exchange_spec.rb index b6c2f80b9c..4e98bec02e 100644 --- a/spec/models/exchange_spec.rb +++ b/spec/models/exchange_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Exchange do diff --git a/spec/models/model_set_spec.rb b/spec/models/model_set_spec.rb index 7c4334e786..2dd5e12c8e 100644 --- a/spec/models/model_set_spec.rb +++ b/spec/models/model_set_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ModelSet do diff --git a/spec/models/order_cycle_spec.rb b/spec/models/order_cycle_spec.rb index c289f7871b..a9a4622331 100644 --- a/spec/models/order_cycle_spec.rb +++ b/spec/models/order_cycle_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderCycle do diff --git a/spec/models/product_import/entry_processor_spec.rb b/spec/models/product_import/entry_processor_spec.rb index 3f8db18fed..69defea209 100644 --- a/spec/models/product_import/entry_processor_spec.rb +++ b/spec/models/product_import/entry_processor_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ProductImport::EntryProcessor do diff --git a/spec/models/product_import/inventory_reset_strategy_spec.rb b/spec/models/product_import/inventory_reset_strategy_spec.rb index 4a56b629df..09f03a2a03 100644 --- a/spec/models/product_import/inventory_reset_strategy_spec.rb +++ b/spec/models/product_import/inventory_reset_strategy_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ProductImport::InventoryResetStrategy do diff --git a/spec/models/product_import/reset_absent_spec.rb b/spec/models/product_import/reset_absent_spec.rb index 990f26ff15..22e574ec28 100644 --- a/spec/models/product_import/reset_absent_spec.rb +++ b/spec/models/product_import/reset_absent_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module ProductImport diff --git a/spec/models/product_import/settings_spec.rb b/spec/models/product_import/settings_spec.rb index b485127f0b..ab383b89a2 100644 --- a/spec/models/product_import/settings_spec.rb +++ b/spec/models/product_import/settings_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ProductImport::Settings do diff --git a/spec/models/product_importer_spec.rb b/spec/models/product_importer_spec.rb index ccc6c3e5a2..3980269bf3 100644 --- a/spec/models/product_importer_spec.rb +++ b/spec/models/product_importer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/permissions' diff --git a/spec/models/proxy_order_spec.rb b/spec/models/proxy_order_spec.rb index ee6e30cbdc..0f925b0a5c 100644 --- a/spec/models/proxy_order_spec.rb +++ b/spec/models/proxy_order_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ProxyOrder, type: :model do diff --git a/spec/models/spree/ability_spec.rb b/spec/models/spree/ability_spec.rb index c20fda569c..6fcc30e722 100644 --- a/spec/models/spree/ability_spec.rb +++ b/spec/models/spree/ability_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'cancan/matchers' require 'support/ability_helpers' @@ -13,7 +15,7 @@ describe Spree::Ability do user.spree_roles.clear end - TOKEN = 'token123'.freeze + TOKEN = 'token123' after(:each) { user.spree_roles = [] diff --git a/spec/models/spree/addresses_spec.rb b/spec/models/spree/addresses_spec.rb index f895db91c7..00c44e3d31 100644 --- a/spec/models/spree/addresses_spec.rb +++ b/spec/models/spree/addresses_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Address do diff --git a/spec/models/spree/adjustment_spec.rb b/spec/models/spree/adjustment_spec.rb index ef66733ec1..344fb8a17f 100644 --- a/spec/models/spree/adjustment_spec.rb +++ b/spec/models/spree/adjustment_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/calculator_spec.rb b/spec/models/spree/calculator_spec.rb index 12d0853da8..27ca7a3018 100644 --- a/spec/models/spree/calculator_spec.rb +++ b/spec/models/spree/calculator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/classification_spec.rb b/spec/models/spree/classification_spec.rb index 2eb3fd68e1..65407747cc 100644 --- a/spec/models/spree/classification_spec.rb +++ b/spec/models/spree/classification_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/credit_card_spec.rb b/spec/models/spree/credit_card_spec.rb index 769faa1439..a8e3d6a016 100644 --- a/spec/models/spree/credit_card_spec.rb +++ b/spec/models/spree/credit_card_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/gateway/stripe_connect_spec.rb b/spec/models/spree/gateway/stripe_connect_spec.rb index 3213dd84f9..cc4cb8f6b9 100644 --- a/spec/models/spree/gateway/stripe_connect_spec.rb +++ b/spec/models/spree/gateway/stripe_connect_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Gateway::StripeConnect, type: :model do diff --git a/spec/models/spree/line_item_spec.rb b/spec/models/spree/line_item_spec.rb index a5552bc729..729c175c6f 100644 --- a/spec/models/spree/line_item_spec.rb +++ b/spec/models/spree/line_item_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/order/checkout_spec.rb b/spec/models/spree/order/checkout_spec.rb index 27a35c8023..4487671f58 100644 --- a/spec/models/spree/order/checkout_spec.rb +++ b/spec/models/spree/order/checkout_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Order::Checkout do diff --git a/spec/models/spree/order_spec.rb b/spec/models/spree/order_spec.rb index 958ece8e52..1fdf953747 100644 --- a/spec/models/spree/order_spec.rb +++ b/spec/models/spree/order_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Order do diff --git a/spec/models/spree/payment_method_spec.rb b/spec/models/spree/payment_method_spec.rb index 20e259dfce..0d9fd451ac 100644 --- a/spec/models/spree/payment_method_spec.rb +++ b/spec/models/spree/payment_method_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' class Spree::Gateway::Test < Spree::Gateway diff --git a/spec/models/spree/payment_spec.rb b/spec/models/spree/payment_spec.rb index 4f40a43d6e..17c084e2a0 100644 --- a/spec/models/spree/payment_spec.rb +++ b/spec/models/spree/payment_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::Payment do diff --git a/spec/models/spree/preferences/file_configuration_spec.rb b/spec/models/spree/preferences/file_configuration_spec.rb index 221a4b062a..b68eeb270e 100644 --- a/spec/models/spree/preferences/file_configuration_spec.rb +++ b/spec/models/spree/preferences/file_configuration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/price_spec.rb b/spec/models/spree/price_spec.rb index 8bf76d3932..bde8fc2cbe 100644 --- a/spec/models/spree/price_spec.rb +++ b/spec/models/spree/price_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/product_set_spec.rb b/spec/models/spree/product_set_spec.rb index d81f139908..25fdd65b6c 100644 --- a/spec/models/spree/product_set_spec.rb +++ b/spec/models/spree/product_set_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::ProductSet do diff --git a/spec/models/spree/product_spec.rb b/spec/models/spree/product_spec.rb index 4a506e9210..8d6693c585 100644 --- a/spec/models/spree/product_spec.rb +++ b/spec/models/spree/product_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'spree/core/product_duplicator' diff --git a/spec/models/spree/shipping_method_spec.rb b/spec/models/spree/shipping_method_spec.rb index b1ed1c8a89..b69e4f5fb4 100644 --- a/spec/models/spree/shipping_method_spec.rb +++ b/spec/models/spree/shipping_method_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/stock/availability_validator_spec.rb b/spec/models/spree/stock/availability_validator_spec.rb index de14a5a1c0..44125cedab 100644 --- a/spec/models/spree/stock/availability_validator_spec.rb +++ b/spec/models/spree/stock/availability_validator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/tax_rate_spec.rb b/spec/models/spree/tax_rate_spec.rb index 65b4cfd552..fa7c5c9f9a 100644 --- a/spec/models/spree/tax_rate_spec.rb +++ b/spec/models/spree/tax_rate_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Spree diff --git a/spec/models/spree/user_spec.rb b/spec/models/spree/user_spec.rb index 8cb6191e60..dcf8805ea9 100644 --- a/spec/models/spree/user_spec.rb +++ b/spec/models/spree/user_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::User do diff --git a/spec/models/spree/variant_spec.rb b/spec/models/spree/variant_spec.rb index 9a5ffbef05..38238f7017 100644 --- a/spec/models/spree/variant_spec.rb +++ b/spec/models/spree/variant_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'variant_units/option_value_namer' require 'spree/localized_number' diff --git a/spec/models/stripe_account_spec.rb b/spec/models/stripe_account_spec.rb index b4a1cbfb00..bade785a46 100644 --- a/spec/models/stripe_account_spec.rb +++ b/spec/models/stripe_account_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'stripe/oauth' diff --git a/spec/models/subscription_line_item_spec.rb b/spec/models/subscription_line_item_spec.rb index 0d07d542d0..bc31544cbc 100644 --- a/spec/models/subscription_line_item_spec.rb +++ b/spec/models/subscription_line_item_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe SubscriptionLineItem, model: true do diff --git a/spec/models/subscription_spec.rb b/spec/models/subscription_spec.rb index c8ae2b5f24..06fee1dfcb 100644 --- a/spec/models/subscription_spec.rb +++ b/spec/models/subscription_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Subscription, type: :model do diff --git a/spec/models/tag_rule/discount_order_spec.rb b/spec/models/tag_rule/discount_order_spec.rb index 831f2faf01..4ea426a278 100644 --- a/spec/models/tag_rule/discount_order_spec.rb +++ b/spec/models/tag_rule/discount_order_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe TagRule::DiscountOrder, type: :model do diff --git a/spec/models/tag_rule/filter_order_cycles_spec.rb b/spec/models/tag_rule/filter_order_cycles_spec.rb index e2dc07906d..fffa14469b 100644 --- a/spec/models/tag_rule/filter_order_cycles_spec.rb +++ b/spec/models/tag_rule/filter_order_cycles_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe TagRule::FilterOrderCycles, type: :model do diff --git a/spec/models/tag_rule/filter_payment_methods_spec.rb b/spec/models/tag_rule/filter_payment_methods_spec.rb index 63312ca358..403e82a7b5 100644 --- a/spec/models/tag_rule/filter_payment_methods_spec.rb +++ b/spec/models/tag_rule/filter_payment_methods_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe TagRule::FilterPaymentMethods, type: :model do diff --git a/spec/models/tag_rule/filter_products_spec.rb b/spec/models/tag_rule/filter_products_spec.rb index 241723157b..becf7a3cb7 100644 --- a/spec/models/tag_rule/filter_products_spec.rb +++ b/spec/models/tag_rule/filter_products_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe TagRule::FilterProducts, type: :model do diff --git a/spec/models/tag_rule/filter_shipping_methods_spec.rb b/spec/models/tag_rule/filter_shipping_methods_spec.rb index 6a52e4b679..b1ac8c23ed 100644 --- a/spec/models/tag_rule/filter_shipping_methods_spec.rb +++ b/spec/models/tag_rule/filter_shipping_methods_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe TagRule::FilterShippingMethods, type: :model do diff --git a/spec/models/tag_rule_spec.rb b/spec/models/tag_rule_spec.rb index 995864ef9a..86eed9d14b 100644 --- a/spec/models/tag_rule_spec.rb +++ b/spec/models/tag_rule_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe TagRule, type: :model do diff --git a/spec/models/variant_override_spec.rb b/spec/models/variant_override_spec.rb index f7123b31ef..f95ceecb27 100644 --- a/spec/models/variant_override_spec.rb +++ b/spec/models/variant_override_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe VariantOverride do diff --git a/spec/performance/injection_helper_spec.rb b/spec/performance/injection_helper_spec.rb index 29e755b85d..9bf1d8e147 100644 --- a/spec/performance/injection_helper_spec.rb +++ b/spec/performance/injection_helper_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe InjectionHelper, type: :helper, performance: true do diff --git a/spec/performance/orders_controller_spec.rb b/spec/performance/orders_controller_spec.rb index 5f6aac9e15..49f7ec2be2 100644 --- a/spec/performance/orders_controller_spec.rb +++ b/spec/performance/orders_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Spree::OrdersController, type: :controller, performance: true do diff --git a/spec/performance/shop_controller_spec.rb b/spec/performance/shop_controller_spec.rb index a26aeb48ef..6a052e67dc 100644 --- a/spec/performance/shop_controller_spec.rb +++ b/spec/performance/shop_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ShopController, type: :controller, performance: true do diff --git a/spec/requests/checkout/failed_checkout_spec.rb b/spec/requests/checkout/failed_checkout_spec.rb index 41062d97d0..efd44cbb31 100644 --- a/spec/requests/checkout/failed_checkout_spec.rb +++ b/spec/requests/checkout/failed_checkout_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "checking out an order that initially fails", type: :request do diff --git a/spec/requests/checkout/paypal_spec.rb b/spec/requests/checkout/paypal_spec.rb index 85ce495b9d..e61bdb813c 100644 --- a/spec/requests/checkout/paypal_spec.rb +++ b/spec/requests/checkout/paypal_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "checking out an order with a paypal express payment method", type: :request do diff --git a/spec/requests/checkout/stripe_connect_spec.rb b/spec/requests/checkout/stripe_connect_spec.rb index 367ef04b14..50af6b975c 100644 --- a/spec/requests/checkout/stripe_connect_spec.rb +++ b/spec/requests/checkout/stripe_connect_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "checking out an order with a Stripe Connect payment method", type: :request do diff --git a/spec/requests/embedded_shopfronts_headers_spec.rb b/spec/requests/embedded_shopfronts_headers_spec.rb index 1a6f2a3a01..e42eb8490d 100644 --- a/spec/requests/embedded_shopfronts_headers_spec.rb +++ b/spec/requests/embedded_shopfronts_headers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe "setting response headers for embedded shopfronts", type: :request do diff --git a/spec/requests/large_request_spec.rb b/spec/requests/large_request_spec.rb index 9a5e668aa7..5631ef4f05 100644 --- a/spec/requests/large_request_spec.rb +++ b/spec/requests/large_request_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Large requests can fail if Devise tries to store the URL in the session cookie. # # http://daniel.fone.net.nz/blog/2014/11/28/actiondispatch-cookies-cookieoverflow-via-devise-s-user_return_to/ diff --git a/spec/serializers/api/admin/customer_serializer_spec.rb b/spec/serializers/api/admin/customer_serializer_spec.rb index 0d9b1625d9..bece0d1c53 100644 --- a/spec/serializers/api/admin/customer_serializer_spec.rb +++ b/spec/serializers/api/admin/customer_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::Admin::CustomerSerializer do diff --git a/spec/serializers/api/admin/enterprise_serializer_spec.rb b/spec/serializers/api/admin/enterprise_serializer_spec.rb index 3216e1966a..1f475718fb 100644 --- a/spec/serializers/api/admin/enterprise_serializer_spec.rb +++ b/spec/serializers/api/admin/enterprise_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe Api::Admin::EnterpriseSerializer do diff --git a/spec/serializers/api/admin/exchange_serializer_spec.rb b/spec/serializers/api/admin/exchange_serializer_spec.rb index 6998159fb1..07218c249a 100644 --- a/spec/serializers/api/admin/exchange_serializer_spec.rb +++ b/spec/serializers/api/admin/exchange_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/order_cycle_permissions' diff --git a/spec/serializers/api/admin/for_order_cycle/supplied_product_serializer_spec.rb b/spec/serializers/api/admin/for_order_cycle/supplied_product_serializer_spec.rb index e6f6789a3a..33fe74578e 100644 --- a/spec/serializers/api/admin/for_order_cycle/supplied_product_serializer_spec.rb +++ b/spec/serializers/api/admin/for_order_cycle/supplied_product_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe Api::Admin::ForOrderCycle::SuppliedProductSerializer do diff --git a/spec/serializers/api/admin/index_enterprise_serializer_spec.rb b/spec/serializers/api/admin/index_enterprise_serializer_spec.rb index f0e0233ea2..d041b2648e 100644 --- a/spec/serializers/api/admin/index_enterprise_serializer_spec.rb +++ b/spec/serializers/api/admin/index_enterprise_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::Admin::IndexEnterpriseSerializer do diff --git a/spec/serializers/api/admin/order_cycle_serializer_spec.rb b/spec/serializers/api/admin/order_cycle_serializer_spec.rb index 8a52be9207..869fac68cc 100644 --- a/spec/serializers/api/admin/order_cycle_serializer_spec.rb +++ b/spec/serializers/api/admin/order_cycle_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" module Api diff --git a/spec/serializers/api/admin/product_serializer_spec.rb b/spec/serializers/api/admin/product_serializer_spec.rb index 1946735d5e..7e42a78197 100644 --- a/spec/serializers/api/admin/product_serializer_spec.rb +++ b/spec/serializers/api/admin/product_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::Admin::ProductSerializer do diff --git a/spec/serializers/api/admin/subscription_customer_serializer_spec.rb b/spec/serializers/api/admin/subscription_customer_serializer_spec.rb index 8ca1bc4805..b0cc0bcae2 100644 --- a/spec/serializers/api/admin/subscription_customer_serializer_spec.rb +++ b/spec/serializers/api/admin/subscription_customer_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::Admin::SubscriptionCustomerSerializer do diff --git a/spec/serializers/api/admin/subscription_line_item_serializer_spec.rb b/spec/serializers/api/admin/subscription_line_item_serializer_spec.rb index 198f67ead3..9b1ca21818 100644 --- a/spec/serializers/api/admin/subscription_line_item_serializer_spec.rb +++ b/spec/serializers/api/admin/subscription_line_item_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Api diff --git a/spec/serializers/api/admin/variant_override_serializer_spec.rb b/spec/serializers/api/admin/variant_override_serializer_spec.rb index 22fa5ef3cf..ded6abdc63 100644 --- a/spec/serializers/api/admin/variant_override_serializer_spec.rb +++ b/spec/serializers/api/admin/variant_override_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Api::Admin::VariantOverrideSerializer do let(:variant) { create(:variant) } let(:hub) { create(:distributor_enterprise) } diff --git a/spec/serializers/api/admin/variant_serializer_spec.rb b/spec/serializers/api/admin/variant_serializer_spec.rb index 61c8b84f4d..957930bad8 100644 --- a/spec/serializers/api/admin/variant_serializer_spec.rb +++ b/spec/serializers/api/admin/variant_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::Admin::VariantSerializer do diff --git a/spec/serializers/api/cached_enterprise_serializer_spec.rb b/spec/serializers/api/cached_enterprise_serializer_spec.rb index c1046fb7b2..523348e74e 100644 --- a/spec/serializers/api/cached_enterprise_serializer_spec.rb +++ b/spec/serializers/api/cached_enterprise_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::CachedEnterpriseSerializer do diff --git a/spec/serializers/api/credit_card_serializer_spec.rb b/spec/serializers/api/credit_card_serializer_spec.rb index 86cdef796a..c8b2e3c3c1 100644 --- a/spec/serializers/api/credit_card_serializer_spec.rb +++ b/spec/serializers/api/credit_card_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::CreditCardSerializer do diff --git a/spec/serializers/api/current_order_serializer_spec.rb b/spec/serializers/api/current_order_serializer_spec.rb index 785886df3c..dd5be4c180 100644 --- a/spec/serializers/api/current_order_serializer_spec.rb +++ b/spec/serializers/api/current_order_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::CurrentOrderSerializer do diff --git a/spec/serializers/api/enterprise_serializer_spec.rb b/spec/serializers/api/enterprise_serializer_spec.rb index a388fe98d1..c0bfa72237 100644 --- a/spec/serializers/api/enterprise_serializer_spec.rb +++ b/spec/serializers/api/enterprise_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::EnterpriseSerializer do diff --git a/spec/serializers/api/enterprise_shopfront_list_serializer_spec.rb b/spec/serializers/api/enterprise_shopfront_list_serializer_spec.rb index 8a36282e43..2e6c200355 100644 --- a/spec/serializers/api/enterprise_shopfront_list_serializer_spec.rb +++ b/spec/serializers/api/enterprise_shopfront_list_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::EnterpriseShopfrontListSerializer do diff --git a/spec/serializers/api/enterprise_shopfront_serializer_spec.rb b/spec/serializers/api/enterprise_shopfront_serializer_spec.rb index b9115328e3..4079b51a6b 100644 --- a/spec/serializers/api/enterprise_shopfront_serializer_spec.rb +++ b/spec/serializers/api/enterprise_shopfront_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::EnterpriseShopfrontSerializer do diff --git a/spec/serializers/api/group_list_serializer_spec.rb b/spec/serializers/api/group_list_serializer_spec.rb index 41c805d19c..69f10a6360 100644 --- a/spec/serializers/api/group_list_serializer_spec.rb +++ b/spec/serializers/api/group_list_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::GroupListSerializer do diff --git a/spec/serializers/api/order_cycle_serializer_spec.rb b/spec/serializers/api/order_cycle_serializer_spec.rb index 9e1700b4ea..5b0a199d11 100644 --- a/spec/serializers/api/order_cycle_serializer_spec.rb +++ b/spec/serializers/api/order_cycle_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::OrderCycleSerializer do diff --git a/spec/serializers/api/order_serializer_spec.rb b/spec/serializers/api/order_serializer_spec.rb index cbbe13eb69..04ef728d59 100644 --- a/spec/serializers/api/order_serializer_spec.rb +++ b/spec/serializers/api/order_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::OrderSerializer do diff --git a/spec/serializers/api/product_serializer_spec.rb b/spec/serializers/api/product_serializer_spec.rb index 4a39eafe43..55790009b8 100644 --- a/spec/serializers/api/product_serializer_spec.rb +++ b/spec/serializers/api/product_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'open_food_network/enterprise_fee_calculator' diff --git a/spec/serializers/api/shipping_method_serializer_spec.rb b/spec/serializers/api/shipping_method_serializer_spec.rb index 7ee9cb4d53..e112f97310 100644 --- a/spec/serializers/api/shipping_method_serializer_spec.rb +++ b/spec/serializers/api/shipping_method_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::ShippingMethodSerializer do diff --git a/spec/serializers/api/variant_serializer_spec.rb b/spec/serializers/api/variant_serializer_spec.rb index cd42514e99..730f91127d 100644 --- a/spec/serializers/api/variant_serializer_spec.rb +++ b/spec/serializers/api/variant_serializer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe Api::VariantSerializer do diff --git a/spec/services/bulk_invoice_service_spec.rb b/spec/services/bulk_invoice_service_spec.rb index ee1e9ad077..c9eb2bbe90 100644 --- a/spec/services/bulk_invoice_service_spec.rb +++ b/spec/services/bulk_invoice_service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe BulkInvoiceService do diff --git a/spec/services/cart_service_spec.rb b/spec/services/cart_service_spec.rb index 0ff59b2b53..acad915a01 100644 --- a/spec/services/cart_service_spec.rb +++ b/spec/services/cart_service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe CartService do diff --git a/spec/services/default_shipping_category_spec.rb b/spec/services/default_shipping_category_spec.rb index cab005df8a..eaa34d468e 100644 --- a/spec/services/default_shipping_category_spec.rb +++ b/spec/services/default_shipping_category_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe DefaultShippingCategory do diff --git a/spec/services/default_stock_location_spec.rb b/spec/services/default_stock_location_spec.rb index 7423d97293..bba56f1c15 100644 --- a/spec/services/default_stock_location_spec.rb +++ b/spec/services/default_stock_location_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe DefaultStockLocation do diff --git a/spec/services/embedded_page_service_spec.rb b/spec/services/embedded_page_service_spec.rb index 0a688e5372..a6d7997976 100644 --- a/spec/services/embedded_page_service_spec.rb +++ b/spec/services/embedded_page_service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe EmbeddedPageService do diff --git a/spec/services/exchange_products_renderer_spec.rb b/spec/services/exchange_products_renderer_spec.rb index 42684c8aae..ba9dc76d8b 100644 --- a/spec/services/exchange_products_renderer_spec.rb +++ b/spec/services/exchange_products_renderer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe ExchangeProductsRenderer do diff --git a/spec/services/exchange_variant_bulk_updater_spec.rb b/spec/services/exchange_variant_bulk_updater_spec.rb index 079129aac4..ebe6a408fe 100644 --- a/spec/services/exchange_variant_bulk_updater_spec.rb +++ b/spec/services/exchange_variant_bulk_updater_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ExchangeVariantBulkUpdater do diff --git a/spec/services/invoice_renderer_spec.rb b/spec/services/invoice_renderer_spec.rb index 7516b86492..87e654eb3f 100644 --- a/spec/services/invoice_renderer_spec.rb +++ b/spec/services/invoice_renderer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe InvoiceRenderer do diff --git a/spec/services/mail_configuration_spec.rb b/spec/services/mail_configuration_spec.rb index c91cb7469a..a1751ad2fe 100644 --- a/spec/services/mail_configuration_spec.rb +++ b/spec/services/mail_configuration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe MailConfiguration do diff --git a/spec/services/order_cycle_distributed_products_spec.rb b/spec/services/order_cycle_distributed_products_spec.rb index 5356340c5d..3f10a03831 100644 --- a/spec/services/order_cycle_distributed_products_spec.rb +++ b/spec/services/order_cycle_distributed_products_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderCycleDistributedProducts do diff --git a/spec/services/order_cycle_distributed_variants_spec.rb b/spec/services/order_cycle_distributed_variants_spec.rb index f93e72e67f..33233f002d 100644 --- a/spec/services/order_cycle_distributed_variants_spec.rb +++ b/spec/services/order_cycle_distributed_variants_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderCycleDistributedVariants do diff --git a/spec/services/order_cycle_form_spec.rb b/spec/services/order_cycle_form_spec.rb index a085961e26..baaaffecd8 100644 --- a/spec/services/order_cycle_form_spec.rb +++ b/spec/services/order_cycle_form_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'order_management/subscriptions/proxy_order_syncer' diff --git a/spec/services/order_cycle_warning_spec.rb b/spec/services/order_cycle_warning_spec.rb index e2c8457e4b..3adf5e21f9 100644 --- a/spec/services/order_cycle_warning_spec.rb +++ b/spec/services/order_cycle_warning_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderCycleWarning do diff --git a/spec/services/order_factory_spec.rb b/spec/services/order_factory_spec.rb index 394de7eaeb..9b6e096a8c 100644 --- a/spec/services/order_factory_spec.rb +++ b/spec/services/order_factory_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OrderFactory do diff --git a/spec/services/order_syncer_spec.rb b/spec/services/order_syncer_spec.rb index 2cd6010736..44f595099e 100644 --- a/spec/services/order_syncer_spec.rb +++ b/spec/services/order_syncer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderSyncer do diff --git a/spec/services/order_workflow_spec.rb b/spec/services/order_workflow_spec.rb index bed3a7b0c9..2e997d411e 100644 --- a/spec/services/order_workflow_spec.rb +++ b/spec/services/order_workflow_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe OrderWorkflow do diff --git a/spec/services/permissions/order_spec.rb b/spec/services/permissions/order_spec.rb index 61b3840139..9373b8d2a0 100644 --- a/spec/services/permissions/order_spec.rb +++ b/spec/services/permissions/order_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module Permissions diff --git a/spec/services/product_tag_rules_filterer_spec.rb b/spec/services/product_tag_rules_filterer_spec.rb index 7d3f0ac2b1..550b06a345 100644 --- a/spec/services/product_tag_rules_filterer_spec.rb +++ b/spec/services/product_tag_rules_filterer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe ProductTagRulesFilterer do diff --git a/spec/services/products_renderer_spec.rb b/spec/services/products_renderer_spec.rb index 0310894f2d..3794da31c7 100644 --- a/spec/services/products_renderer_spec.rb +++ b/spec/services/products_renderer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe ProductsRenderer do diff --git a/spec/services/search_orders_spec.rb b/spec/services/search_orders_spec.rb index 481ef75601..207c76a054 100644 --- a/spec/services/search_orders_spec.rb +++ b/spec/services/search_orders_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe SearchOrders do diff --git a/spec/services/tax_rate_finder_spec.rb b/spec/services/tax_rate_finder_spec.rb index 7af1be76b8..b7bb07db73 100644 --- a/spec/services/tax_rate_finder_spec.rb +++ b/spec/services/tax_rate_finder_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe TaxRateFinder do diff --git a/spec/services/upload_sanitizer_spec.rb b/spec/services/upload_sanitizer_spec.rb index 6d8e6f029c..ccea217785 100644 --- a/spec/services/upload_sanitizer_spec.rb +++ b/spec/services/upload_sanitizer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe UploadSanitizer do diff --git a/spec/services/variant_units/option_value_namer_spec.rb b/spec/services/variant_units/option_value_namer_spec.rb index 3e153896fd..f99e63878e 100644 --- a/spec/services/variant_units/option_value_namer_spec.rb +++ b/spec/services/variant_units/option_value_namer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module VariantUnits diff --git a/spec/services/variants_stock_levels_spec.rb b/spec/services/variants_stock_levels_spec.rb index 5977845665..998a2d8fb3 100644 --- a/spec/services/variants_stock_levels_spec.rb +++ b/spec/services/variants_stock_levels_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe VariantsStockLevels do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4c78b8542c..c4a2fdbc21 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'simplecov' SimpleCov.start 'rails' diff --git a/spec/support/ability_helper.rb b/spec/support/ability_helper.rb index 7a6843c6dd..aa1d17fd14 100644 --- a/spec/support/ability_helper.rb +++ b/spec/support/ability_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AbilityHelper shared_examples "allows access to Enterprise Fee Summary" do it "should be able to see link and read report" do diff --git a/spec/support/api_helper.rb b/spec/support/api_helper.rb index 5059a94e80..03e2e79edb 100644 --- a/spec/support/api_helper.rb +++ b/spec/support/api_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module ApiHelper def json_response diff --git a/spec/support/cancan_helper.rb b/spec/support/cancan_helper.rb index efdfefe604..33615f0694 100644 --- a/spec/support/cancan_helper.rb +++ b/spec/support/cancan_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # From: https://github.com/ryanb/cancan/wiki/Testing-Abilities#rspec require "cancan/matchers" diff --git a/spec/support/controller_helper.rb b/spec/support/controller_helper.rb index 2d7ddf585d..622afe37f6 100644 --- a/spec/support/controller_helper.rb +++ b/spec/support/controller_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module ControllerHelper def controller_login_as_admin diff --git a/spec/support/delayed_job_helper.rb b/spec/support/delayed_job_helper.rb index a08f493cb6..f03132da25 100644 --- a/spec/support/delayed_job_helper.rb +++ b/spec/support/delayed_job_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module DelayedJobHelper def run_job(job) diff --git a/spec/support/downloads_helper.rb b/spec/support/downloads_helper.rb index 2adb6fcbe5..a85bcca55b 100644 --- a/spec/support/downloads_helper.rb +++ b/spec/support/downloads_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DownloadsHelper TIMEOUT = 10 diff --git a/spec/support/email_helper.rb b/spec/support/email_helper.rb index 4291844575..f49a4d4918 100644 --- a/spec/support/email_helper.rb +++ b/spec/support/email_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module EmailHelper # Some specs trigger actions that send emails, for example creating an order. diff --git a/spec/support/embedded_pages_helper.rb b/spec/support/embedded_pages_helper.rb index 5eed420394..064bd89a71 100644 --- a/spec/support/embedded_pages_helper.rb +++ b/spec/support/embedded_pages_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module EmbeddedPagesHelper def on_embedded_page diff --git a/spec/support/enterprise_groups_helper.rb b/spec/support/enterprise_groups_helper.rb index d8bf46017f..610628d9af 100644 --- a/spec/support/enterprise_groups_helper.rb +++ b/spec/support/enterprise_groups_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module EnterpriseGroupsHelper def create_enterprise_group_for(distributor) diff --git a/spec/support/feature_toggle_helper.rb b/spec/support/feature_toggle_helper.rb index 6d9e1fadf5..a817e25049 100644 --- a/spec/support/feature_toggle_helper.rb +++ b/spec/support/feature_toggle_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module FeatureToggleHelper def set_feature_toggle(feature, status) diff --git a/spec/support/features/datepicker_helper.rb b/spec/support/features/datepicker_helper.rb index 60221c6635..9c8b6adc63 100644 --- a/spec/support/features/datepicker_helper.rb +++ b/spec/support/features/datepicker_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Features module DatepickerHelper def choose_today_from_datepicker diff --git a/spec/support/filters_helper.rb b/spec/support/filters_helper.rb index 5e509568f7..16b9a50b66 100644 --- a/spec/support/filters_helper.rb +++ b/spec/support/filters_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork # Helper for customer-facing filters (eg. producers, shops, groups, etc.) module FiltersHelper diff --git a/spec/support/html_helper.rb b/spec/support/html_helper.rb index ffa261fc39..a93966549d 100644 --- a/spec/support/html_helper.rb +++ b/spec/support/html_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module HtmlHelper def html_save_and_open(html) diff --git a/spec/support/i18n_error_raising.rb b/spec/support/i18n_error_raising.rb index 9d0610b6c3..d25faccdc4 100644 --- a/spec/support/i18n_error_raising.rb +++ b/spec/support/i18n_error_raising.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # From: https://robots.thoughtbot.com/better-tests-through-internationalization I18n.exception_handler = lambda do |_exception, _locale, key, _options| diff --git a/spec/support/localized_number_helper.rb b/spec/support/localized_number_helper.rb index 996374d549..93429d00c3 100644 --- a/spec/support/localized_number_helper.rb +++ b/spec/support/localized_number_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + shared_examples "a model using the LocalizedNumber module" do |attributes| before do allow(Spree::Config).to receive(:enable_localized_number?).and_return true diff --git a/spec/support/matchers/date_time_validator_matchers.rb b/spec/support/matchers/date_time_validator_matchers.rb index f0fdaf678c..0a933be811 100644 --- a/spec/support/matchers/date_time_validator_matchers.rb +++ b/spec/support/matchers/date_time_validator_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # RSpec matcher for DateTimeValidator # # Usage: diff --git a/spec/support/matchers/delegate_matchers.rb b/spec/support/matchers/delegate_matchers.rb index 6af4ac68bd..e9d0ae53e6 100644 --- a/spec/support/matchers/delegate_matchers.rb +++ b/spec/support/matchers/delegate_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # RSpec matcher to spec delegations. # # Usage: diff --git a/spec/support/matchers/email_confirmation_matchers.rb b/spec/support/matchers/email_confirmation_matchers.rb index 8599f820e9..ea7ae7128d 100644 --- a/spec/support/matchers/email_confirmation_matchers.rb +++ b/spec/support/matchers/email_confirmation_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec::Matchers.define :send_confirmation_instructions do match do |event_proc| expect(&event_proc).to change { ActionMailer::Base.deliveries.count }.by 1 diff --git a/spec/support/matchers/flash_message_matchers.rb b/spec/support/matchers/flash_message_matchers.rb index af9398425a..8d2f1febb1 100644 --- a/spec/support/matchers/flash_message_matchers.rb +++ b/spec/support/matchers/flash_message_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec::Matchers.define :have_flash_message do |message| match do |node| @message, @node = message, node diff --git a/spec/support/matchers/integer_array_validator_matchers.rb b/spec/support/matchers/integer_array_validator_matchers.rb index 44cff638aa..84cc53510a 100644 --- a/spec/support/matchers/integer_array_validator_matchers.rb +++ b/spec/support/matchers/integer_array_validator_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # RSpec matcher for IntegerArrayValidator # # Usage: diff --git a/spec/support/matchers/select2_matchers.rb b/spec/support/matchers/select2_matchers.rb index 942feca113..4f451a87c4 100644 --- a/spec/support/matchers/select2_matchers.rb +++ b/spec/support/matchers/select2_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec::Matchers.define :have_select2 do |id, options = {}| # TODO: Implement other have_select options # http://www.rubydoc.info/github/jnicklas/capybara/Capybara/Node/Matchers#has_select%3F-instance_method diff --git a/spec/support/matchers/table_matchers.rb b/spec/support/matchers/table_matchers.rb index e5594c53f7..7c33b3a5c6 100644 --- a/spec/support/matchers/table_matchers.rb +++ b/spec/support/matchers/table_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec::Matchers.define :have_table_row do |row| match do |node| @row = row diff --git a/spec/support/performance_helper.rb b/spec/support/performance_helper.rb index 2f2b42cb8e..9b5adcb32b 100644 --- a/spec/support/performance_helper.rb +++ b/spec/support/performance_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module PerformanceHelper def multi_benchmark(num_samples, cache_key_patterns: []) diff --git a/spec/support/products_helper.rb b/spec/support/products_helper.rb index fcadc55b62..1a865f3fd4 100644 --- a/spec/support/products_helper.rb +++ b/spec/support/products_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module ProductsHelper def with_products_require_tax_category(value) diff --git a/spec/support/request/admin_helper.rb b/spec/support/request/admin_helper.rb index d83e4b85ef..63e0476a1a 100644 --- a/spec/support/request/admin_helper.rb +++ b/spec/support/request/admin_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AdminHelper def toggle_columns(*labels) # open dropdown diff --git a/spec/support/request/authentication_helper.rb b/spec/support/request/authentication_helper.rb index 8c5e9e890a..147e7ff631 100644 --- a/spec/support/request/authentication_helper.rb +++ b/spec/support/request/authentication_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AuthenticationHelper include Warden::Test::Helpers diff --git a/spec/support/request/cookie_helper.rb b/spec/support/request/cookie_helper.rb index a7a6d8cd0e..7f262d9d07 100644 --- a/spec/support/request/cookie_helper.rb +++ b/spec/support/request/cookie_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module CookieHelper def cookie_named(name) Capybara.current_session.driver.browser.manage.cookie_named(name) diff --git a/spec/support/request/distribution_helper.rb b/spec/support/request/distribution_helper.rb index cd9a5fe8dc..7cd550f164 100644 --- a/spec/support/request/distribution_helper.rb +++ b/spec/support/request/distribution_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenFoodNetwork module DistributionHelper def select_distribution(distributor, order_cycle = nil) diff --git a/spec/support/request/menu_helper.rb b/spec/support/request/menu_helper.rb index da8f1ad399..66eb7c5752 100644 --- a/spec/support/request/menu_helper.rb +++ b/spec/support/request/menu_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module MenuHelper def open_login_modal find("a", text: "Log in").click diff --git a/spec/support/request/shop_workflow.rb b/spec/support/request/shop_workflow.rb index 99a9a3cdd2..738d9f7113 100644 --- a/spec/support/request/shop_workflow.rb +++ b/spec/support/request/shop_workflow.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ShopWorkflow # If a spec uses `within` but we want to check something outside of that # scope, we can search from the body element instead. diff --git a/spec/support/request/ui_component_helper.rb b/spec/support/request/ui_component_helper.rb index f493bcc3ce..6b85e51768 100644 --- a/spec/support/request/ui_component_helper.rb +++ b/spec/support/request/ui_component_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UIComponentHelper def browse_as_medium Capybara.current_session.current_window diff --git a/spec/support/request/web_helper.rb b/spec/support/request/web_helper.rb index 26e8c7ea14..9b14b1bda8 100644 --- a/spec/support/request/web_helper.rb +++ b/spec/support/request/web_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module WebHelper def self.included(base) base.extend ClassMethods diff --git a/spec/support/seeds.rb b/spec/support/seeds.rb index 26cc7a46e0..a8546c7af3 100644 --- a/spec/support/seeds.rb +++ b/spec/support/seeds.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Minimal test seeding # -------------------- # diff --git a/spec/support/spree/checkout_helpers.rb b/spec/support/spree/checkout_helpers.rb index 44da6a9e74..7731fe3822 100644 --- a/spec/support/spree/checkout_helpers.rb +++ b/spec/support/spree/checkout_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Spree module CheckoutHelpers def click_checkout_continue_button diff --git a/spec/support/spree/money_helper.rb b/spec/support/spree/money_helper.rb index dc5a374c39..ea6a54944a 100644 --- a/spec/support/spree/money_helper.rb +++ b/spec/support/spree/money_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Spree module MoneyHelper def with_currency(amount, options = {}) diff --git a/spec/support/spree/url_helpers.rb b/spec/support/spree/url_helpers.rb index 0be58fa899..81b72923e1 100644 --- a/spec/support/spree/url_helpers.rb +++ b/spec/support/spree/url_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Spree module UrlHelpers def spree diff --git a/spec/support/timecop.rb b/spec/support/timecop.rb index f14c7d622d..07ec0de98f 100644 --- a/spec/support/timecop.rb +++ b/spec/support/timecop.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + Timecop.safe_mode = true diff --git a/spec/validators/date_time_string_validator_spec.rb b/spec/validators/date_time_string_validator_spec.rb index d5151fc7c5..3ee3143eb8 100644 --- a/spec/validators/date_time_string_validator_spec.rb +++ b/spec/validators/date_time_string_validator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe DateTimeStringValidator do diff --git a/spec/validators/integer_array_validator_spec.rb b/spec/validators/integer_array_validator_spec.rb index 156409f0d0..57fb3d6b3b 100644 --- a/spec/validators/integer_array_validator_spec.rb +++ b/spec/validators/integer_array_validator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe IntegerArrayValidator do diff --git a/spec/views/spree/admin/orders/edit.html.haml_spec.rb b/spec/views/spree/admin/orders/edit.html.haml_spec.rb index e6b779df39..8a8c5b03f8 100644 --- a/spec/views/spree/admin/orders/edit.html.haml_spec.rb +++ b/spec/views/spree/admin/orders/edit.html.haml_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe "spree/admin/orders/edit.html.haml" do diff --git a/spec/views/spree/admin/orders/index.html.haml_spec.rb b/spec/views/spree/admin/orders/index.html.haml_spec.rb index 8379a77610..d9556bd76a 100644 --- a/spec/views/spree/admin/orders/index.html.haml_spec.rb +++ b/spec/views/spree/admin/orders/index.html.haml_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe "spree/admin/orders/index.html.haml" do diff --git a/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb b/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb index 6a03146fdc..3b6b6d5aba 100644 --- a/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb +++ b/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe "spree/admin/payment_methods/index.html.haml" do diff --git a/spec/views/spree/admin/shared/_order_links.html.haml_spec.rb b/spec/views/spree/admin/shared/_order_links.html.haml_spec.rb index 027c188cab..264a81976b 100644 --- a/spec/views/spree/admin/shared/_order_links.html.haml_spec.rb +++ b/spec/views/spree/admin/shared/_order_links.html.haml_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" describe "spree/admin/shared/_order_links.html.haml" do