From 4b6d98fd75dc8a9f2ac9a32a0904a5b2949a65d9 Mon Sep 17 00:00:00 2001 From: Gui Vieira Date: Fri, 27 Dec 2019 15:44:30 -0800 Subject: [PATCH] Use frozen string literals --- .rubocop.yml | 2 -- Appraisals | 2 ++ Gemfile | 2 ++ Rakefile | 2 ++ custom_plan.rb | 2 ++ doc_config/yard/setup.rb | 2 ++ doc_config/yard/templates/default/fulldoc/html/setup.rb | 2 ++ doc_config/yard/templates/default/layout/html/setup.rb | 2 ++ gemfiles/rails_4_2.gemfile | 2 ++ gemfiles/rails_5_0.gemfile | 2 ++ gemfiles/rails_5_1.gemfile | 2 ++ gemfiles/rails_5_2.gemfile | 2 ++ gemfiles/rails_6_0.gemfile | 2 ++ lib/shoulda-matchers.rb | 2 ++ lib/shoulda/matchers.rb | 2 ++ lib/shoulda/matchers/action_controller.rb | 2 ++ lib/shoulda/matchers/action_controller/callback_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/filter_param_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/flash_store.rb | 2 ++ lib/shoulda/matchers/action_controller/permit_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/redirect_to_matcher.rb | 2 ++ .../matchers/action_controller/render_template_matcher.rb | 2 ++ .../matchers/action_controller/render_with_layout_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/rescue_from_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/respond_with_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/route_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/route_params.rb | 2 ++ lib/shoulda/matchers/action_controller/session_store.rb | 2 ++ lib/shoulda/matchers/action_controller/set_flash_matcher.rb | 2 ++ lib/shoulda/matchers/action_controller/set_session_matcher.rb | 2 ++ .../matchers/action_controller/set_session_or_flash_matcher.rb | 2 ++ lib/shoulda/matchers/active_model.rb | 2 ++ .../matchers/active_model/allow_mass_assignment_of_matcher.rb | 2 ++ lib/shoulda/matchers/active_model/allow_value_matcher.rb | 2 ++ .../allow_value_matcher/attribute_changed_value_error.rb | 2 ++ .../allow_value_matcher/attribute_does_not_exist_error.rb | 2 ++ .../active_model/allow_value_matcher/attribute_setter.rb | 2 ++ .../allow_value_matcher/attribute_setter_and_validator.rb | 2 ++ .../active_model/allow_value_matcher/attribute_setters.rb | 2 ++ .../allow_value_matcher/attribute_setters_and_validators.rb | 2 ++ .../active_model/allow_value_matcher/successful_check.rb | 2 ++ .../active_model/allow_value_matcher/successful_setting.rb | 2 ++ lib/shoulda/matchers/active_model/disallow_value_matcher.rb | 2 ++ lib/shoulda/matchers/active_model/errors.rb | 2 ++ .../matchers/active_model/have_secure_password_matcher.rb | 2 ++ lib/shoulda/matchers/active_model/helpers.rb | 2 ++ lib/shoulda/matchers/active_model/numericality_matchers.rb | 2 ++ .../active_model/numericality_matchers/comparison_matcher.rb | 2 ++ .../active_model/numericality_matchers/even_number_matcher.rb | 2 ++ .../active_model/numericality_matchers/numeric_type_matcher.rb | 2 ++ .../active_model/numericality_matchers/odd_number_matcher.rb | 2 ++ .../active_model/numericality_matchers/only_integer_matcher.rb | 2 ++ lib/shoulda/matchers/active_model/qualifiers.rb | 2 ++ lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb | 2 ++ .../active_model/qualifiers/ignore_interference_by_writer.rb | 2 ++ .../active_model/qualifiers/ignoring_interference_by_writer.rb | 2 ++ .../matchers/active_model/validate_absence_of_matcher.rb | 2 ++ .../matchers/active_model/validate_acceptance_of_matcher.rb | 2 ++ .../matchers/active_model/validate_confirmation_of_matcher.rb | 2 ++ .../matchers/active_model/validate_exclusion_of_matcher.rb | 2 ++ .../matchers/active_model/validate_inclusion_of_matcher.rb | 2 ++ lib/shoulda/matchers/active_model/validate_length_of_matcher.rb | 2 ++ .../matchers/active_model/validate_numericality_of_matcher.rb | 2 ++ .../matchers/active_model/validate_presence_of_matcher.rb | 2 ++ lib/shoulda/matchers/active_model/validation_matcher.rb | 2 ++ .../active_model/validation_matcher/build_description.rb | 2 ++ lib/shoulda/matchers/active_model/validation_message_finder.rb | 2 ++ lib/shoulda/matchers/active_model/validator.rb | 2 ++ lib/shoulda/matchers/active_record.rb | 2 ++ .../active_record/accept_nested_attributes_for_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/association_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/association_matchers.rb | 2 ++ .../active_record/association_matchers/counter_cache_matcher.rb | 2 ++ .../active_record/association_matchers/dependent_matcher.rb | 2 ++ .../active_record/association_matchers/inverse_of_matcher.rb | 2 ++ .../active_record/association_matchers/join_table_matcher.rb | 2 ++ .../active_record/association_matchers/model_reflection.rb | 2 ++ .../active_record/association_matchers/model_reflector.rb | 2 ++ .../active_record/association_matchers/option_verifier.rb | 2 ++ .../active_record/association_matchers/optional_matcher.rb | 2 ++ .../active_record/association_matchers/order_matcher.rb | 2 ++ .../active_record/association_matchers/required_matcher.rb | 2 ++ .../active_record/association_matchers/source_matcher.rb | 2 ++ .../active_record/association_matchers/through_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/define_enum_for_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/have_db_column_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/have_db_index_matcher.rb | 2 ++ .../matchers/active_record/have_readonly_attribute_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/have_secure_token_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/serialize_matcher.rb | 2 ++ lib/shoulda/matchers/active_record/uniqueness.rb | 2 ++ lib/shoulda/matchers/active_record/uniqueness/model.rb | 2 ++ lib/shoulda/matchers/active_record/uniqueness/namespace.rb | 2 ++ .../matchers/active_record/uniqueness/test_model_creator.rb | 2 ++ lib/shoulda/matchers/active_record/uniqueness/test_models.rb | 2 ++ .../matchers/active_record/validate_uniqueness_of_matcher.rb | 2 ++ lib/shoulda/matchers/configuration.rb | 2 ++ lib/shoulda/matchers/doublespeak.rb | 2 ++ lib/shoulda/matchers/doublespeak/double.rb | 2 ++ lib/shoulda/matchers/doublespeak/double_collection.rb | 2 ++ .../matchers/doublespeak/double_implementation_registry.rb | 2 ++ lib/shoulda/matchers/doublespeak/method_call.rb | 2 ++ lib/shoulda/matchers/doublespeak/object_double.rb | 2 ++ lib/shoulda/matchers/doublespeak/proxy_implementation.rb | 2 ++ lib/shoulda/matchers/doublespeak/stub_implementation.rb | 2 ++ lib/shoulda/matchers/doublespeak/world.rb | 2 ++ lib/shoulda/matchers/error.rb | 2 ++ lib/shoulda/matchers/independent.rb | 2 ++ lib/shoulda/matchers/independent/delegate_method_matcher.rb | 2 ++ .../independent/delegate_method_matcher/stubbed_target.rb | 2 ++ .../delegate_method_matcher/target_not_defined_error.rb | 2 ++ lib/shoulda/matchers/integrations.rb | 2 ++ lib/shoulda/matchers/integrations/configuration.rb | 2 ++ lib/shoulda/matchers/integrations/configuration_error.rb | 2 ++ lib/shoulda/matchers/integrations/inclusion.rb | 2 ++ lib/shoulda/matchers/integrations/libraries.rb | 2 ++ .../matchers/integrations/libraries/action_controller.rb | 2 ++ lib/shoulda/matchers/integrations/libraries/active_model.rb | 2 ++ lib/shoulda/matchers/integrations/libraries/active_record.rb | 2 ++ lib/shoulda/matchers/integrations/libraries/missing_library.rb | 2 ++ lib/shoulda/matchers/integrations/libraries/rails.rb | 2 ++ lib/shoulda/matchers/integrations/libraries/routing.rb | 2 ++ lib/shoulda/matchers/integrations/rails.rb | 2 ++ lib/shoulda/matchers/integrations/registry.rb | 2 ++ lib/shoulda/matchers/integrations/test_frameworks.rb | 2 ++ .../integrations/test_frameworks/active_support_test_case.rb | 2 ++ lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb | 2 ++ lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb | 2 ++ .../integrations/test_frameworks/missing_test_framework.rb | 2 ++ lib/shoulda/matchers/integrations/test_frameworks/rspec.rb | 2 ++ lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb | 2 ++ lib/shoulda/matchers/matcher_context.rb | 2 ++ lib/shoulda/matchers/rails_shim.rb | 2 ++ lib/shoulda/matchers/routing.rb | 2 ++ lib/shoulda/matchers/util.rb | 2 ++ lib/shoulda/matchers/util/word_wrap.rb | 2 ++ lib/shoulda/matchers/version.rb | 2 ++ lib/shoulda/matchers/warn.rb | 2 ++ script/supported_ruby_versions | 1 + shoulda-matchers.gemspec | 2 ++ spec/acceptance/active_model_integration_spec.rb | 2 ++ spec/acceptance/independent_matchers_spec.rb | 2 ++ spec/acceptance/multiple_libraries_integration_spec.rb | 2 ++ spec/acceptance/rails_integration_spec.rb | 2 ++ spec/acceptance_spec_helper.rb | 2 ++ spec/doublespeak_spec_helper.rb | 2 ++ spec/report_warnings.rb | 2 ++ spec/spec_helper.rb | 2 ++ spec/support/acceptance/adds_shoulda_matchers_to_project.rb | 2 ++ spec/support/acceptance/helpers.rb | 2 ++ spec/support/acceptance/helpers/active_model_helpers.rb | 2 ++ spec/support/acceptance/helpers/array_helpers.rb | 2 ++ spec/support/acceptance/helpers/base_helpers.rb | 2 ++ spec/support/acceptance/helpers/command_helpers.rb | 2 ++ spec/support/acceptance/helpers/file_helpers.rb | 2 ++ spec/support/acceptance/helpers/gem_helpers.rb | 2 ++ spec/support/acceptance/helpers/minitest_helpers.rb | 2 ++ spec/support/acceptance/helpers/n_unit_helpers.rb | 2 ++ spec/support/acceptance/helpers/pluralization_helpers.rb | 2 ++ spec/support/acceptance/helpers/rails_migration_helpers.rb | 2 ++ spec/support/acceptance/helpers/rails_version_helpers.rb | 2 ++ spec/support/acceptance/helpers/rspec_helpers.rb | 2 ++ spec/support/acceptance/helpers/ruby_version_helpers.rb | 2 ++ spec/support/acceptance/helpers/step_helpers.rb | 2 ++ spec/support/acceptance/matchers/have_output.rb | 2 ++ .../matchers/indicate_number_of_tests_was_run_matcher.rb | 2 ++ .../acceptance/matchers/indicate_that_tests_were_run_matcher.rb | 2 ++ spec/support/tests/bundle.rb | 2 ++ spec/support/tests/command_runner.rb | 2 ++ spec/support/tests/current_bundle.rb | 2 ++ spec/support/tests/database.rb | 2 ++ spec/support/tests/database_adapters/postgresql.rb | 2 ++ spec/support/tests/database_adapters/sqlite3.rb | 2 ++ spec/support/tests/database_configuration.rb | 2 ++ spec/support/tests/database_configuration_registry.rb | 2 ++ spec/support/tests/filesystem.rb | 2 ++ spec/support/tests/version.rb | 2 ++ spec/support/unit/active_record/create_table.rb | 2 ++ spec/support/unit/attribute.rb | 2 ++ spec/support/unit/capture.rb | 2 ++ spec/support/unit/change_value.rb | 2 ++ spec/support/unit/create_model_arguments/basic.rb | 2 ++ spec/support/unit/create_model_arguments/has_many.rb | 2 ++ spec/support/unit/create_model_arguments/uniqueness_matcher.rb | 2 ++ spec/support/unit/helpers/action_pack_versions.rb | 2 ++ spec/support/unit/helpers/active_model_helpers.rb | 2 ++ spec/support/unit/helpers/active_model_versions.rb | 2 ++ spec/support/unit/helpers/active_record_versions.rb | 2 ++ spec/support/unit/helpers/active_resource_builder.rb | 2 ++ spec/support/unit/helpers/allow_value_matcher_helpers.rb | 2 ++ spec/support/unit/helpers/application_configuration_helpers.rb | 2 ++ spec/support/unit/helpers/class_builder.rb | 2 ++ spec/support/unit/helpers/column_type_helpers.rb | 2 ++ spec/support/unit/helpers/confirmation_matcher_helpers.rb | 2 ++ spec/support/unit/helpers/controller_builder.rb | 2 ++ spec/support/unit/helpers/database_helpers.rb | 2 ++ spec/support/unit/helpers/i18n_faker.rb | 2 ++ spec/support/unit/helpers/mailer_builder.rb | 2 ++ spec/support/unit/helpers/message_helpers.rb | 2 ++ spec/support/unit/helpers/model_builder.rb | 2 ++ spec/support/unit/helpers/rails_versions.rb | 2 ++ .../support/unit/helpers/validation_matcher_scenario_helpers.rb | 2 ++ spec/support/unit/i18n.rb | 2 ++ spec/support/unit/load_environment.rb | 2 ++ spec/support/unit/matchers/deprecate.rb | 2 ++ .../unit/matchers/fail_with_message_including_matcher.rb | 2 ++ spec/support/unit/matchers/fail_with_message_matcher.rb | 2 ++ spec/support/unit/matchers/match_against.rb | 2 ++ spec/support/unit/matchers/print_warning_including.rb | 2 ++ spec/support/unit/model_creation_strategies/active_model.rb | 2 ++ spec/support/unit/model_creation_strategies/active_record.rb | 2 ++ spec/support/unit/model_creators.rb | 2 ++ spec/support/unit/model_creators/active_model.rb | 2 ++ spec/support/unit/model_creators/active_record.rb | 2 ++ .../model_creators/active_record/has_and_belongs_to_many.rb | 2 ++ spec/support/unit/model_creators/active_record/has_many.rb | 2 ++ .../unit/model_creators/active_record/uniqueness_matcher.rb | 2 ++ spec/support/unit/model_creators/basic.rb | 2 ++ spec/support/unit/rails_application.rb | 2 ++ .../support/unit/record_builder_with_i18n_validation_message.rb | 2 ++ spec/support/unit/record_validating_confirmation_builder.rb | 2 ++ .../unit/record_with_different_error_attribute_builder.rb | 2 ++ .../unit/shared_examples/ignoring_interference_by_writer.rb | 2 ++ spec/support/unit/shared_examples/numerical_submatcher.rb | 2 ++ spec/support/unit/shared_examples/set_session_or_flash.rb | 2 ++ spec/support/unit/validation_matcher_scenario.rb | 2 ++ .../shoulda/matchers/action_controller/callback_matcher_spec.rb | 2 ++ .../matchers/action_controller/filter_param_matcher_spec.rb | 2 ++ .../shoulda/matchers/action_controller/permit_matcher_spec.rb | 2 ++ .../matchers/action_controller/redirect_to_matcher_spec.rb | 2 ++ .../matchers/action_controller/render_template_matcher_spec.rb | 2 ++ .../action_controller/render_with_layout_matcher_spec.rb | 2 ++ .../matchers/action_controller/rescue_from_matcher_spec.rb | 2 ++ .../matchers/action_controller/respond_with_matcher_spec.rb | 2 ++ .../shoulda/matchers/action_controller/route_matcher_spec.rb | 2 ++ .../shoulda/matchers/action_controller/route_params_spec.rb | 2 ++ .../matchers/action_controller/set_flash_matcher_spec.rb | 2 ++ .../matchers/action_controller/set_session_matcher_spec.rb | 2 ++ .../action_controller/set_session_or_flash_matcher_spec.rb | 2 ++ .../active_model/allow_mass_assignment_of_matcher_spec.rb | 2 ++ .../shoulda/matchers/active_model/allow_value_matcher_spec.rb | 2 ++ .../matchers/active_model/disallow_value_matcher_spec.rb | 2 ++ .../matchers/active_model/have_secure_password_matcher_spec.rb | 2 ++ spec/unit/shoulda/matchers/active_model/helpers_spec.rb | 2 ++ .../matchers/active_model/validate_absence_of_matcher_spec.rb | 2 ++ .../active_model/validate_acceptance_of_matcher_spec.rb | 2 ++ .../active_model/validate_confirmation_of_matcher_spec.rb | 2 ++ .../matchers/active_model/validate_exclusion_of_matcher_spec.rb | 2 ++ .../matchers/active_model/validate_inclusion_of_matcher_spec.rb | 2 ++ .../matchers/active_model/validate_length_of_matcher_spec.rb | 2 ++ .../active_model/validate_numericality_of_matcher_spec.rb | 2 ++ .../matchers/active_model/validate_presence_of_matcher_spec.rb | 2 ++ .../active_record/accept_nested_attributes_for_matcher_spec.rb | 2 ++ .../shoulda/matchers/active_record/association_matcher_spec.rb | 2 ++ .../active_record/association_matchers/model_reflection_spec.rb | 2 ++ .../matchers/active_record/define_enum_for_matcher_spec.rb | 2 ++ .../matchers/active_record/have_db_column_matcher_spec.rb | 2 ++ .../matchers/active_record/have_db_index_matcher_spec.rb | 2 ++ .../active_record/have_readonly_attributes_matcher_spec.rb | 2 ++ .../matchers/active_record/have_secure_token_matcher_spec.rb | 2 ++ .../shoulda/matchers/active_record/serialize_matcher_spec.rb | 2 ++ .../active_record/validate_uniqueness_of_matcher_spec.rb | 2 ++ .../unit/shoulda/matchers/doublespeak/double_collection_spec.rb | 2 ++ .../matchers/doublespeak/double_implementation_registry_spec.rb | 2 ++ spec/unit/shoulda/matchers/doublespeak/double_spec.rb | 2 ++ spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb | 2 ++ .../shoulda/matchers/doublespeak/proxy_implementation_spec.rb | 2 ++ .../shoulda/matchers/doublespeak/stub_implementation_spec.rb | 2 ++ spec/unit/shoulda/matchers/doublespeak/world_spec.rb | 2 ++ spec/unit/shoulda/matchers/doublespeak_spec.rb | 2 ++ .../independent/delegate_method_matcher/stubbed_target_spec.rb | 2 ++ .../matchers/independent/delegate_method_matcher_spec.rb | 2 ++ spec/unit/shoulda/matchers/routing/route_matcher_spec.rb | 2 ++ spec/unit/shoulda/matchers/util/word_wrap_spec.rb | 2 ++ spec/unit_spec_helper.rb | 2 ++ spec/warnings_spy.rb | 2 ++ spec/warnings_spy/filesystem.rb | 2 ++ spec/warnings_spy/partitioner.rb | 2 ++ spec/warnings_spy/reader.rb | 2 ++ spec/warnings_spy/reporter.rb | 2 ++ tasks/documentation.rb | 2 ++ 281 files changed, 559 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 6247cbb6..41faf079 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -136,8 +136,6 @@ Style/EvenOdd: Enabled: false Style/FormatString: Enabled: false -Style/FrozenStringLiteralComment: - Enabled: false Style/GlobalVars: Enabled: false Style/GuardClause: diff --git a/Appraisals b/Appraisals index d8feefd5..ee2521f4 100644 --- a/Appraisals +++ b/Appraisals @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Note: All of the dependencies here were obtained by running `rails new` with # various versions of Rails and copying lines from the generated Gemfile. It's # best to keep the gems here in the same order as they're listed there so you diff --git a/Gemfile b/Gemfile index 2a0bc09c..9077313c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' gem 'appraisal', '2.2.0' diff --git a/Rakefile b/Rakefile index 411c8e1b..00c1d95a 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/setup' require 'bundler/gem_tasks' require 'rspec/core/rake_task' diff --git a/custom_plan.rb b/custom_plan.rb index edb06a25..5d3c30d6 100644 --- a/custom_plan.rb +++ b/custom_plan.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'zeus' require 'zeus/plan' require_relative 'spec/support/tests/current_bundle' diff --git a/doc_config/yard/setup.rb b/doc_config/yard/setup.rb index eb654f5b..b3c7f14b 100644 --- a/doc_config/yard/setup.rb +++ b/doc_config/yard/setup.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + YARD::Templates::Engine.register_template_path(File.dirname(__FILE__) + '/templates') require 'pygments.rb' diff --git a/doc_config/yard/templates/default/fulldoc/html/setup.rb b/doc_config/yard/templates/default/fulldoc/html/setup.rb index 1696df6d..b727b968 100644 --- a/doc_config/yard/templates/default/fulldoc/html/setup.rb +++ b/doc_config/yard/templates/default/fulldoc/html/setup.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + def stylesheets_full_list %w(css/solarized.css css/bootstrap.css css/global.css) + super end diff --git a/doc_config/yard/templates/default/layout/html/setup.rb b/doc_config/yard/templates/default/layout/html/setup.rb index ec952ba9..cb4799e3 100644 --- a/doc_config/yard/templates/default/layout/html/setup.rb +++ b/doc_config/yard/templates/default/layout/html/setup.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + def stylesheets %w(css/solarized.css css/bootstrap.css css/global.css) + super end diff --git a/gemfiles/rails_4_2.gemfile b/gemfiles/rails_4_2.gemfile index a1496597..c77509f1 100644 --- a/gemfiles/rails_4_2.gemfile +++ b/gemfiles/rails_4_2.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file was generated by Appraisal source "https://rubygems.org" diff --git a/gemfiles/rails_5_0.gemfile b/gemfiles/rails_5_0.gemfile index ec631a88..f0feef6b 100644 --- a/gemfiles/rails_5_0.gemfile +++ b/gemfiles/rails_5_0.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file was generated by Appraisal source "https://rubygems.org" diff --git a/gemfiles/rails_5_1.gemfile b/gemfiles/rails_5_1.gemfile index 42933295..243153e5 100644 --- a/gemfiles/rails_5_1.gemfile +++ b/gemfiles/rails_5_1.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file was generated by Appraisal source "https://rubygems.org" diff --git a/gemfiles/rails_5_2.gemfile b/gemfiles/rails_5_2.gemfile index 75740d37..709c3ef9 100644 --- a/gemfiles/rails_5_2.gemfile +++ b/gemfiles/rails_5_2.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file was generated by Appraisal source "https://rubygems.org" diff --git a/gemfiles/rails_6_0.gemfile b/gemfiles/rails_6_0.gemfile index 5415e171..4b705099 100644 --- a/gemfiles/rails_6_0.gemfile +++ b/gemfiles/rails_6_0.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file was generated by Appraisal source "https://rubygems.org" diff --git a/lib/shoulda-matchers.rb b/lib/shoulda-matchers.rb index 8d85daf3..98f3acae 100644 --- a/lib/shoulda-matchers.rb +++ b/lib/shoulda-matchers.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + require 'shoulda/matchers' diff --git a/lib/shoulda/matchers.rb b/lib/shoulda/matchers.rb index b4c00d1e..91cf1c85 100644 --- a/lib/shoulda/matchers.rb +++ b/lib/shoulda/matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/configuration' require 'shoulda/matchers/doublespeak' require 'shoulda/matchers/error' diff --git a/lib/shoulda/matchers/action_controller.rb b/lib/shoulda/matchers/action_controller.rb index 91dd016f..9a24d797 100644 --- a/lib/shoulda/matchers/action_controller.rb +++ b/lib/shoulda/matchers/action_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/action_controller/filter_param_matcher' require 'shoulda/matchers/action_controller/route_params' require 'shoulda/matchers/action_controller/set_flash_matcher' diff --git a/lib/shoulda/matchers/action_controller/callback_matcher.rb b/lib/shoulda/matchers/action_controller/callback_matcher.rb index 5b915270..f4df864b 100644 --- a/lib/shoulda/matchers/action_controller/callback_matcher.rb +++ b/lib/shoulda/matchers/action_controller/callback_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/filter_param_matcher.rb b/lib/shoulda/matchers/action_controller/filter_param_matcher.rb index c8e06b1c..4f6b2b2d 100644 --- a/lib/shoulda/matchers/action_controller/filter_param_matcher.rb +++ b/lib/shoulda/matchers/action_controller/filter_param_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/flash_store.rb b/lib/shoulda/matchers/action_controller/flash_store.rb index d48fef72..02cfa3cd 100644 --- a/lib/shoulda/matchers/action_controller/flash_store.rb +++ b/lib/shoulda/matchers/action_controller/flash_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/permit_matcher.rb b/lib/shoulda/matchers/action_controller/permit_matcher.rb index ef184aaf..a93f4d58 100644 --- a/lib/shoulda/matchers/action_controller/permit_matcher.rb +++ b/lib/shoulda/matchers/action_controller/permit_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'delegate' begin diff --git a/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb b/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb index c68ae67d..0a3b256e 100644 --- a/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +++ b/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/render_template_matcher.rb b/lib/shoulda/matchers/action_controller/render_template_matcher.rb index c373e905..dc4ee930 100644 --- a/lib/shoulda/matchers/action_controller/render_template_matcher.rb +++ b/lib/shoulda/matchers/action_controller/render_template_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb b/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb index 358d210a..e3c939fc 100644 --- a/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb +++ b/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb b/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb index c791fa1f..3fec7c1d 100644 --- a/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb +++ b/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/respond_with_matcher.rb b/lib/shoulda/matchers/action_controller/respond_with_matcher.rb index ef6e1bcd..a4b95ee8 100644 --- a/lib/shoulda/matchers/action_controller/respond_with_matcher.rb +++ b/lib/shoulda/matchers/action_controller/respond_with_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/route_matcher.rb b/lib/shoulda/matchers/action_controller/route_matcher.rb index 1d14a2c1..1a733a10 100644 --- a/lib/shoulda/matchers/action_controller/route_matcher.rb +++ b/lib/shoulda/matchers/action_controller/route_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/route_params.rb b/lib/shoulda/matchers/action_controller/route_params.rb index 2e4413a0..e3e96acb 100644 --- a/lib/shoulda/matchers/action_controller/route_params.rb +++ b/lib/shoulda/matchers/action_controller/route_params.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/session_store.rb b/lib/shoulda/matchers/action_controller/session_store.rb index a63d238b..84588068 100644 --- a/lib/shoulda/matchers/action_controller/session_store.rb +++ b/lib/shoulda/matchers/action_controller/session_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/action_controller/set_flash_matcher.rb b/lib/shoulda/matchers/action_controller/set_flash_matcher.rb index 10aea10b..9ceb1cb5 100644 --- a/lib/shoulda/matchers/action_controller/set_flash_matcher.rb +++ b/lib/shoulda/matchers/action_controller/set_flash_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module Shoulda diff --git a/lib/shoulda/matchers/action_controller/set_session_matcher.rb b/lib/shoulda/matchers/action_controller/set_session_matcher.rb index 01189eba..42018494 100644 --- a/lib/shoulda/matchers/action_controller/set_session_matcher.rb +++ b/lib/shoulda/matchers/action_controller/set_session_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module Shoulda diff --git a/lib/shoulda/matchers/action_controller/set_session_or_flash_matcher.rb b/lib/shoulda/matchers/action_controller/set_session_or_flash_matcher.rb index f004ebe2..5d00d842 100644 --- a/lib/shoulda/matchers/action_controller/set_session_or_flash_matcher.rb +++ b/lib/shoulda/matchers/action_controller/set_session_or_flash_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActionController diff --git a/lib/shoulda/matchers/active_model.rb b/lib/shoulda/matchers/active_model.rb index cab68545..f22b6bb4 100644 --- a/lib/shoulda/matchers/active_model.rb +++ b/lib/shoulda/matchers/active_model.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/active_model/helpers' require 'shoulda/matchers/active_model/qualifiers' require 'shoulda/matchers/active_model/validation_matcher' diff --git a/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb b/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb index 2c81db7b..f704095a 100644 --- a/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher.rb b/lib/shoulda/matchers/active_model/allow_value_matcher.rb index bbf4b8fb..b1c7d6a3 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error.rb index 417982ee..f096b8a7 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error.rb index a56066c4..a178d495 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb index fc7570be..e45afb95 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator.rb index 8d89fbe3..e024614b 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module Shoulda diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters.rb index 97b618e3..b47953ba 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators.rb index f28f1f6a..3b4315eb 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/successful_check.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/successful_check.rb index 2381d030..5aaa2959 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/successful_check.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/successful_check.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/allow_value_matcher/successful_setting.rb b/lib/shoulda/matchers/active_model/allow_value_matcher/successful_setting.rb index 6eca4198..e24d29d6 100644 --- a/lib/shoulda/matchers/active_model/allow_value_matcher/successful_setting.rb +++ b/lib/shoulda/matchers/active_model/allow_value_matcher/successful_setting.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/disallow_value_matcher.rb b/lib/shoulda/matchers/active_model/disallow_value_matcher.rb index e6a50647..3b4ecbce 100644 --- a/lib/shoulda/matchers/active_model/disallow_value_matcher.rb +++ b/lib/shoulda/matchers/active_model/disallow_value_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module Shoulda diff --git a/lib/shoulda/matchers/active_model/errors.rb b/lib/shoulda/matchers/active_model/errors.rb index d8480430..daa7a890 100644 --- a/lib/shoulda/matchers/active_model/errors.rb +++ b/lib/shoulda/matchers/active_model/errors.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb b/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb index e73a7549..6e15b24a 100644 --- a/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb +++ b/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/helpers.rb b/lib/shoulda/matchers/active_model/helpers.rb index cf2c5cf8..2f4d3793 100644 --- a/lib/shoulda/matchers/active_model/helpers.rb +++ b/lib/shoulda/matchers/active_model/helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/numericality_matchers.rb b/lib/shoulda/matchers/active_model/numericality_matchers.rb index fe649c66..1d6429dd 100644 --- a/lib/shoulda/matchers/active_model/numericality_matchers.rb +++ b/lib/shoulda/matchers/active_model/numericality_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb b/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb index 8110a832..30df591e 100644 --- a/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb +++ b/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb b/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb index 167f2bc2..2d443928 100644 --- a/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb +++ b/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb b/lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb index 7197eba2..ccd926e1 100644 --- a/lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb +++ b/lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module Shoulda diff --git a/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb b/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb index 8fdaaeae..35f9ab1a 100644 --- a/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb +++ b/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb b/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb index 42fd9fb6..4a409687 100644 --- a/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb +++ b/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/qualifiers.rb b/lib/shoulda/matchers/active_model/qualifiers.rb index 7af3d448..149fbb70 100644 --- a/lib/shoulda/matchers/active_model/qualifiers.rb +++ b/lib/shoulda/matchers/active_model/qualifiers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb b/lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb index 0e0bc30a..fdcf5b56 100644 --- a/lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb +++ b/lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/qualifiers/ignore_interference_by_writer.rb b/lib/shoulda/matchers/active_model/qualifiers/ignore_interference_by_writer.rb index 719d96b6..98927fc1 100644 --- a/lib/shoulda/matchers/active_model/qualifiers/ignore_interference_by_writer.rb +++ b/lib/shoulda/matchers/active_model/qualifiers/ignore_interference_by_writer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb b/lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb index 31302f02..9d6bfd3a 100644 --- a/lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb +++ b/lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb index c78ddf6a..efde3ec9 100644 --- a/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb index 7c2734a9..cfe8d5e8 100644 --- a/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb index 81e91bac..d2cdb9e2 100644 --- a/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb index 7016d071..bafea0b6 100644 --- a/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb index 6ddb740f..880f138d 100644 --- a/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bigdecimal' require 'date' diff --git a/lib/shoulda/matchers/active_model/validate_length_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_length_of_matcher.rb index a4032495..d15e92e9 100644 --- a/lib/shoulda/matchers/active_model/validate_length_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_length_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb index a4281be7..c5d19642 100644 --- a/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb index de770b07..2a3bf826 100644 --- a/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validation_matcher.rb b/lib/shoulda/matchers/active_model/validation_matcher.rb index 3575999c..bd1d19fd 100644 --- a/lib/shoulda/matchers/active_model/validation_matcher.rb +++ b/lib/shoulda/matchers/active_model/validation_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validation_matcher/build_description.rb b/lib/shoulda/matchers/active_model/validation_matcher/build_description.rb index 2fb1adf9..2e1aa310 100644 --- a/lib/shoulda/matchers/active_model/validation_matcher/build_description.rb +++ b/lib/shoulda/matchers/active_model/validation_matcher/build_description.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validation_message_finder.rb b/lib/shoulda/matchers/active_model/validation_message_finder.rb index 33d1305e..5abae8b8 100644 --- a/lib/shoulda/matchers/active_model/validation_message_finder.rb +++ b/lib/shoulda/matchers/active_model/validation_message_finder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_model/validator.rb b/lib/shoulda/matchers/active_model/validator.rb index 42643729..5fe7337b 100644 --- a/lib/shoulda/matchers/active_model/validator.rb +++ b/lib/shoulda/matchers/active_model/validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_record.rb b/lib/shoulda/matchers/active_record.rb index 00d30a92..4706c3e0 100644 --- a/lib/shoulda/matchers/active_record.rb +++ b/lib/shoulda/matchers/active_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "shoulda/matchers/active_record/association_matcher" require "shoulda/matchers/active_record/association_matchers" require "shoulda/matchers/active_record/association_matchers/counter_cache_matcher" diff --git a/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb b/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb index 737b0e52..ca477a7b 100644 --- a/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb +++ b/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matcher.rb b/lib/shoulda/matchers/active_record/association_matcher.rb index 5b122dec..ec8d4767 100644 --- a/lib/shoulda/matchers/active_record/association_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'active_support/core_ext/module/delegation' module Shoulda diff --git a/lib/shoulda/matchers/active_record/association_matchers.rb b/lib/shoulda/matchers/active_record/association_matchers.rb index 802cb59b..424cfdd7 100644 --- a/lib/shoulda/matchers/active_record/association_matchers.rb +++ b/lib/shoulda/matchers/active_record/association_matchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb index 6866e3b9..d9ef5ef5 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb index 973433a0..4d4ba776 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb index ae9a5656..10c9845c 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb index b214445f..3d7aef34 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb b/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb index 882808f4..e5c847cb 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'delegate' module Shoulda diff --git a/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb b/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb index 0d0503c9..43dbbd92 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb b/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb index 3ad93b76..0231380a 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb index b6ab5755..50178b69 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb index 08775955..8239598a 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb index 9a84ebc4..d144c5de 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb index 7985b003..9546b24c 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb b/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb index 0569394a..ff2b9ace 100644 --- a/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb b/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb index 6fd570e0..5c096836 100644 --- a/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb +++ b/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/have_db_column_matcher.rb b/lib/shoulda/matchers/active_record/have_db_column_matcher.rb index 98180f47..bcdf53dd 100644 --- a/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +++ b/lib/shoulda/matchers/active_record/have_db_column_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/have_db_index_matcher.rb b/lib/shoulda/matchers/active_record/have_db_index_matcher.rb index 6cfe5d85..5db4c6c5 100644 --- a/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +++ b/lib/shoulda/matchers/active_record/have_db_index_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb b/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb index aec93184..615d5234 100644 --- a/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb +++ b/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/have_secure_token_matcher.rb b/lib/shoulda/matchers/active_record/have_secure_token_matcher.rb index 693c7d8b..4c0a8365 100644 --- a/lib/shoulda/matchers/active_record/have_secure_token_matcher.rb +++ b/lib/shoulda/matchers/active_record/have_secure_token_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/serialize_matcher.rb b/lib/shoulda/matchers/active_record/serialize_matcher.rb index ca8965b0..6196a0f4 100644 --- a/lib/shoulda/matchers/active_record/serialize_matcher.rb +++ b/lib/shoulda/matchers/active_record/serialize_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/uniqueness.rb b/lib/shoulda/matchers/active_record/uniqueness.rb index db935631..6080a5cf 100644 --- a/lib/shoulda/matchers/active_record/uniqueness.rb +++ b/lib/shoulda/matchers/active_record/uniqueness.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveModel diff --git a/lib/shoulda/matchers/active_record/uniqueness/model.rb b/lib/shoulda/matchers/active_record/uniqueness/model.rb index a5ce8487..63092459 100644 --- a/lib/shoulda/matchers/active_record/uniqueness/model.rb +++ b/lib/shoulda/matchers/active_record/uniqueness/model.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/uniqueness/namespace.rb b/lib/shoulda/matchers/active_record/uniqueness/namespace.rb index 65e6d3fd..08ec2fa8 100644 --- a/lib/shoulda/matchers/active_record/uniqueness/namespace.rb +++ b/lib/shoulda/matchers/active_record/uniqueness/namespace.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb b/lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb index 78f86e34..b6c48351 100644 --- a/lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb +++ b/lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'thread' module Shoulda diff --git a/lib/shoulda/matchers/active_record/uniqueness/test_models.rb b/lib/shoulda/matchers/active_record/uniqueness/test_models.rb index 2283af96..80b589ea 100644 --- a/lib/shoulda/matchers/active_record/uniqueness/test_models.rb +++ b/lib/shoulda/matchers/active_record/uniqueness/test_models.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'thread' module Shoulda diff --git a/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb b/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb index a0084fd5..69569fa5 100644 --- a/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb +++ b/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module ActiveRecord diff --git a/lib/shoulda/matchers/configuration.rb b/lib/shoulda/matchers/configuration.rb index fd988d1f..cec1bc4a 100644 --- a/lib/shoulda/matchers/configuration.rb +++ b/lib/shoulda/matchers/configuration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/doublespeak.rb b/lib/shoulda/matchers/doublespeak.rb index e09b0082..a37c7897 100644 --- a/lib/shoulda/matchers/doublespeak.rb +++ b/lib/shoulda/matchers/doublespeak.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module Shoulda diff --git a/lib/shoulda/matchers/doublespeak/double.rb b/lib/shoulda/matchers/doublespeak/double.rb index 13fbbbf8..f6b59d97 100644 --- a/lib/shoulda/matchers/doublespeak/double.rb +++ b/lib/shoulda/matchers/doublespeak/double.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/doublespeak/double_collection.rb b/lib/shoulda/matchers/doublespeak/double_collection.rb index 43d4f003..85e8b767 100644 --- a/lib/shoulda/matchers/doublespeak/double_collection.rb +++ b/lib/shoulda/matchers/doublespeak/double_collection.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/doublespeak/double_implementation_registry.rb b/lib/shoulda/matchers/doublespeak/double_implementation_registry.rb index 71e43e1d..d89d85fa 100644 --- a/lib/shoulda/matchers/doublespeak/double_implementation_registry.rb +++ b/lib/shoulda/matchers/doublespeak/double_implementation_registry.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/doublespeak/method_call.rb b/lib/shoulda/matchers/doublespeak/method_call.rb index 9323cf40..088d2808 100644 --- a/lib/shoulda/matchers/doublespeak/method_call.rb +++ b/lib/shoulda/matchers/doublespeak/method_call.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/doublespeak/object_double.rb b/lib/shoulda/matchers/doublespeak/object_double.rb index 17b27af4..bb0ebea0 100644 --- a/lib/shoulda/matchers/doublespeak/object_double.rb +++ b/lib/shoulda/matchers/doublespeak/object_double.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/doublespeak/proxy_implementation.rb b/lib/shoulda/matchers/doublespeak/proxy_implementation.rb index 6168d3e4..322f3a6f 100644 --- a/lib/shoulda/matchers/doublespeak/proxy_implementation.rb +++ b/lib/shoulda/matchers/doublespeak/proxy_implementation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/doublespeak/stub_implementation.rb b/lib/shoulda/matchers/doublespeak/stub_implementation.rb index acb125d1..84266893 100644 --- a/lib/shoulda/matchers/doublespeak/stub_implementation.rb +++ b/lib/shoulda/matchers/doublespeak/stub_implementation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/doublespeak/world.rb b/lib/shoulda/matchers/doublespeak/world.rb index 3c046a3c..276c61d0 100644 --- a/lib/shoulda/matchers/doublespeak/world.rb +++ b/lib/shoulda/matchers/doublespeak/world.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Doublespeak diff --git a/lib/shoulda/matchers/error.rb b/lib/shoulda/matchers/error.rb index e2b9f6b5..efe8474a 100644 --- a/lib/shoulda/matchers/error.rb +++ b/lib/shoulda/matchers/error.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/independent.rb b/lib/shoulda/matchers/independent.rb index 3996e023..1be462a7 100644 --- a/lib/shoulda/matchers/independent.rb +++ b/lib/shoulda/matchers/independent.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/independent/delegate_method_matcher' require 'shoulda/matchers/independent/delegate_method_matcher/stubbed_target' require 'shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error' diff --git a/lib/shoulda/matchers/independent/delegate_method_matcher.rb b/lib/shoulda/matchers/independent/delegate_method_matcher.rb index 31fd5231..03e29357 100644 --- a/lib/shoulda/matchers/independent/delegate_method_matcher.rb +++ b/lib/shoulda/matchers/independent/delegate_method_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/doublespeak' require 'shoulda/matchers/matcher_context' diff --git a/lib/shoulda/matchers/independent/delegate_method_matcher/stubbed_target.rb b/lib/shoulda/matchers/independent/delegate_method_matcher/stubbed_target.rb index c2c6f449..2c6f17d5 100644 --- a/lib/shoulda/matchers/independent/delegate_method_matcher/stubbed_target.rb +++ b/lib/shoulda/matchers/independent/delegate_method_matcher/stubbed_target.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Independent diff --git a/lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb b/lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb index 0f003975..aab74565 100644 --- a/lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb +++ b/lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Independent diff --git a/lib/shoulda/matchers/integrations.rb b/lib/shoulda/matchers/integrations.rb index dc7ad4ed..e29a6266 100644 --- a/lib/shoulda/matchers/integrations.rb +++ b/lib/shoulda/matchers/integrations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/integrations/configuration.rb b/lib/shoulda/matchers/integrations/configuration.rb index 78f7953e..7307d7d1 100644 --- a/lib/shoulda/matchers/integrations/configuration.rb +++ b/lib/shoulda/matchers/integrations/configuration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'set' module Shoulda diff --git a/lib/shoulda/matchers/integrations/configuration_error.rb b/lib/shoulda/matchers/integrations/configuration_error.rb index 1132b564..0796d09a 100644 --- a/lib/shoulda/matchers/integrations/configuration_error.rb +++ b/lib/shoulda/matchers/integrations/configuration_error.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/inclusion.rb b/lib/shoulda/matchers/integrations/inclusion.rb index 7f446fc8..727129fc 100644 --- a/lib/shoulda/matchers/integrations/inclusion.rb +++ b/lib/shoulda/matchers/integrations/inclusion.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/libraries.rb b/lib/shoulda/matchers/integrations/libraries.rb index c3724642..8fdc177c 100644 --- a/lib/shoulda/matchers/integrations/libraries.rb +++ b/lib/shoulda/matchers/integrations/libraries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/integrations/libraries/action_controller' require 'shoulda/matchers/integrations/libraries/active_model' require 'shoulda/matchers/integrations/libraries/active_record' diff --git a/lib/shoulda/matchers/integrations/libraries/action_controller.rb b/lib/shoulda/matchers/integrations/libraries/action_controller.rb index 5d3a1fe4..789b5dae 100644 --- a/lib/shoulda/matchers/integrations/libraries/action_controller.rb +++ b/lib/shoulda/matchers/integrations/libraries/action_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/libraries/active_model.rb b/lib/shoulda/matchers/integrations/libraries/active_model.rb index 0d88b35e..dac77e71 100644 --- a/lib/shoulda/matchers/integrations/libraries/active_model.rb +++ b/lib/shoulda/matchers/integrations/libraries/active_model.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/libraries/active_record.rb b/lib/shoulda/matchers/integrations/libraries/active_record.rb index f04fe1ed..bae17c73 100644 --- a/lib/shoulda/matchers/integrations/libraries/active_record.rb +++ b/lib/shoulda/matchers/integrations/libraries/active_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/libraries/missing_library.rb b/lib/shoulda/matchers/integrations/libraries/missing_library.rb index c1ea89a9..56252216 100644 --- a/lib/shoulda/matchers/integrations/libraries/missing_library.rb +++ b/lib/shoulda/matchers/integrations/libraries/missing_library.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/libraries/rails.rb b/lib/shoulda/matchers/integrations/libraries/rails.rb index 6deade23..3a31347d 100644 --- a/lib/shoulda/matchers/integrations/libraries/rails.rb +++ b/lib/shoulda/matchers/integrations/libraries/rails.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/libraries/routing.rb b/lib/shoulda/matchers/integrations/libraries/routing.rb index 3399c22b..3ba07bcb 100644 --- a/lib/shoulda/matchers/integrations/libraries/routing.rb +++ b/lib/shoulda/matchers/integrations/libraries/routing.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/rails.rb b/lib/shoulda/matchers/integrations/rails.rb index d28dedf1..be811035 100644 --- a/lib/shoulda/matchers/integrations/rails.rb +++ b/lib/shoulda/matchers/integrations/rails.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/registry.rb b/lib/shoulda/matchers/integrations/registry.rb index 80836e6e..7a868cbd 100644 --- a/lib/shoulda/matchers/integrations/registry.rb +++ b/lib/shoulda/matchers/integrations/registry.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/test_frameworks.rb b/lib/shoulda/matchers/integrations/test_frameworks.rb index d7e80016..a6e4e8e5 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/integrations/test_frameworks/active_support_test_case' require 'shoulda/matchers/integrations/test_frameworks/minitest_4' require 'shoulda/matchers/integrations/test_frameworks/minitest_5' diff --git a/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb b/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb index 90dce71e..f1075652 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb b/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb index 1351b8af..2120c3e7 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb b/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb index 14553fd9..3c3cfee8 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb b/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb index 0a5f8c55..62be7860 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb b/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb index 3fd6d617..74eb6b36 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb b/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb index 951c1df5..41f044ba 100644 --- a/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb +++ b/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers module Integrations diff --git a/lib/shoulda/matchers/matcher_context.rb b/lib/shoulda/matchers/matcher_context.rb index 16ef8bd1..7f60a498 100644 --- a/lib/shoulda/matchers/matcher_context.rb +++ b/lib/shoulda/matchers/matcher_context.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/rails_shim.rb b/lib/shoulda/matchers/rails_shim.rb index 929b6485..d1719e82 100644 --- a/lib/shoulda/matchers/rails_shim.rb +++ b/lib/shoulda/matchers/rails_shim.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/routing.rb b/lib/shoulda/matchers/routing.rb index 7f57df79..5ee42d48 100644 --- a/lib/shoulda/matchers/routing.rb +++ b/lib/shoulda/matchers/routing.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/util.rb b/lib/shoulda/matchers/util.rb index 37737a9d..c1f102b8 100644 --- a/lib/shoulda/matchers/util.rb +++ b/lib/shoulda/matchers/util.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'shoulda/matchers/util/word_wrap' module Shoulda diff --git a/lib/shoulda/matchers/util/word_wrap.rb b/lib/shoulda/matchers/util/word_wrap.rb index 8f6077d2..4ff7ece8 100644 --- a/lib/shoulda/matchers/util/word_wrap.rb +++ b/lib/shoulda/matchers/util/word_wrap.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/version.rb b/lib/shoulda/matchers/version.rb index 373e9d82..00af36da 100644 --- a/lib/shoulda/matchers/version.rb +++ b/lib/shoulda/matchers/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/lib/shoulda/matchers/warn.rb b/lib/shoulda/matchers/warn.rb index b0f45af3..5455f64e 100644 --- a/lib/shoulda/matchers/warn.rb +++ b/lib/shoulda/matchers/warn.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Shoulda module Matchers # @private diff --git a/script/supported_ruby_versions b/script/supported_ruby_versions index 003e2b1c..744d76a4 100755 --- a/script/supported_ruby_versions +++ b/script/supported_ruby_versions @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'yaml' diff --git a/shoulda-matchers.gemspec b/shoulda-matchers.gemspec index 752579a3..50c05ce8 100644 --- a/shoulda-matchers.gemspec +++ b/shoulda-matchers.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib') require 'shoulda/matchers/version' diff --git a/spec/acceptance/active_model_integration_spec.rb b/spec/acceptance/active_model_integration_spec.rb index 1c9042e9..80b9ac6d 100644 --- a/spec/acceptance/active_model_integration_spec.rb +++ b/spec/acceptance/active_model_integration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'acceptance_spec_helper' describe 'shoulda-matchers integrates with an ActiveModel project' do diff --git a/spec/acceptance/independent_matchers_spec.rb b/spec/acceptance/independent_matchers_spec.rb index 59e3c889..d6ef1c01 100644 --- a/spec/acceptance/independent_matchers_spec.rb +++ b/spec/acceptance/independent_matchers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'acceptance_spec_helper' describe 'shoulda-matchers has independent matchers, specifically delegate_method' do diff --git a/spec/acceptance/multiple_libraries_integration_spec.rb b/spec/acceptance/multiple_libraries_integration_spec.rb index 376e1291..e6af20c1 100644 --- a/spec/acceptance/multiple_libraries_integration_spec.rb +++ b/spec/acceptance/multiple_libraries_integration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'acceptance_spec_helper' describe 'shoulda-matchers integrates with multiple libraries' do diff --git a/spec/acceptance/rails_integration_spec.rb b/spec/acceptance/rails_integration_spec.rb index 79d6e197..8e407e0f 100644 --- a/spec/acceptance/rails_integration_spec.rb +++ b/spec/acceptance/rails_integration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'acceptance_spec_helper' describe 'shoulda-matchers integrates with Rails' do diff --git a/spec/acceptance_spec_helper.rb b/spec/acceptance_spec_helper.rb index f1022c79..f0519466 100644 --- a/spec/acceptance_spec_helper.rb +++ b/spec/acceptance_spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'support/tests/current_bundle' Tests::CurrentBundle.instance.assert_appraisal! diff --git a/spec/doublespeak_spec_helper.rb b/spec/doublespeak_spec_helper.rb index 58f03ea7..8cbbd686 100644 --- a/spec/doublespeak_spec_helper.rb +++ b/spec/doublespeak_spec_helper.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + require 'shoulda/matchers/doublespeak' require 'spec_helper' diff --git a/spec/report_warnings.rb b/spec/report_warnings.rb index b6f0fc08..d758d3c4 100644 --- a/spec/report_warnings.rb +++ b/spec/report_warnings.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require File.expand_path('../warnings_spy', __FILE__) # Adapted from diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b7f73972..c8b9286d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + PROJECT_ROOT = File.expand_path('../..', __FILE__) $LOAD_PATH << File.join(PROJECT_ROOT, 'lib') diff --git a/spec/support/acceptance/adds_shoulda_matchers_to_project.rb b/spec/support/acceptance/adds_shoulda_matchers_to_project.rb index c684e196..fb266c6f 100644 --- a/spec/support/acceptance/adds_shoulda_matchers_to_project.rb +++ b/spec/support/acceptance/adds_shoulda_matchers_to_project.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'helpers/base_helpers' require_relative 'helpers/rspec_helpers' diff --git a/spec/support/acceptance/helpers.rb b/spec/support/acceptance/helpers.rb index c09a1dfa..6f446636 100644 --- a/spec/support/acceptance/helpers.rb +++ b/spec/support/acceptance/helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'helpers/active_model_helpers' require_relative 'helpers/base_helpers' require_relative 'helpers/command_helpers' diff --git a/spec/support/acceptance/helpers/active_model_helpers.rb b/spec/support/acceptance/helpers/active_model_helpers.rb index e218c2a2..e7b36b2f 100644 --- a/spec/support/acceptance/helpers/active_model_helpers.rb +++ b/spec/support/acceptance/helpers/active_model_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'gem_helpers' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/array_helpers.rb b/spec/support/acceptance/helpers/array_helpers.rb index e9d3b2eb..c06de554 100644 --- a/spec/support/acceptance/helpers/array_helpers.rb +++ b/spec/support/acceptance/helpers/array_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AcceptanceTests module ArrayHelpers def to_sentence(array) diff --git a/spec/support/acceptance/helpers/base_helpers.rb b/spec/support/acceptance/helpers/base_helpers.rb index 98383b56..8d5846ff 100644 --- a/spec/support/acceptance/helpers/base_helpers.rb +++ b/spec/support/acceptance/helpers/base_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../../tests/bundle' require_relative '../../tests/database' require_relative '../../tests/filesystem' diff --git a/spec/support/acceptance/helpers/command_helpers.rb b/spec/support/acceptance/helpers/command_helpers.rb index f833a6fe..a06145ff 100644 --- a/spec/support/acceptance/helpers/command_helpers.rb +++ b/spec/support/acceptance/helpers/command_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'base_helpers' require_relative '../../tests/command_runner' diff --git a/spec/support/acceptance/helpers/file_helpers.rb b/spec/support/acceptance/helpers/file_helpers.rb index adb98bf3..89aa4141 100644 --- a/spec/support/acceptance/helpers/file_helpers.rb +++ b/spec/support/acceptance/helpers/file_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'base_helpers' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/gem_helpers.rb b/spec/support/acceptance/helpers/gem_helpers.rb index e3c3d542..38eccb2b 100644 --- a/spec/support/acceptance/helpers/gem_helpers.rb +++ b/spec/support/acceptance/helpers/gem_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'base_helpers' require_relative 'command_helpers' require_relative 'file_helpers' diff --git a/spec/support/acceptance/helpers/minitest_helpers.rb b/spec/support/acceptance/helpers/minitest_helpers.rb index a27c2fa1..61809450 100644 --- a/spec/support/acceptance/helpers/minitest_helpers.rb +++ b/spec/support/acceptance/helpers/minitest_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'gem_helpers' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/n_unit_helpers.rb b/spec/support/acceptance/helpers/n_unit_helpers.rb index 3429aec2..99b74db3 100644 --- a/spec/support/acceptance/helpers/n_unit_helpers.rb +++ b/spec/support/acceptance/helpers/n_unit_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'rails_version_helpers' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/pluralization_helpers.rb b/spec/support/acceptance/helpers/pluralization_helpers.rb index 9aacd7ae..efb18d26 100644 --- a/spec/support/acceptance/helpers/pluralization_helpers.rb +++ b/spec/support/acceptance/helpers/pluralization_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AcceptanceTests module PluralizationHelpers def pluralize(count, singular_version, plural_version = nil) diff --git a/spec/support/acceptance/helpers/rails_migration_helpers.rb b/spec/support/acceptance/helpers/rails_migration_helpers.rb index 211bc01b..d6bd6cfb 100644 --- a/spec/support/acceptance/helpers/rails_migration_helpers.rb +++ b/spec/support/acceptance/helpers/rails_migration_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'gem_helpers' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/rails_version_helpers.rb b/spec/support/acceptance/helpers/rails_version_helpers.rb index 02f20711..34729983 100644 --- a/spec/support/acceptance/helpers/rails_version_helpers.rb +++ b/spec/support/acceptance/helpers/rails_version_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'gem_helpers' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/rspec_helpers.rb b/spec/support/acceptance/helpers/rspec_helpers.rb index 875a9115..0edc3f2d 100644 --- a/spec/support/acceptance/helpers/rspec_helpers.rb +++ b/spec/support/acceptance/helpers/rspec_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'gem_helpers' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/ruby_version_helpers.rb b/spec/support/acceptance/helpers/ruby_version_helpers.rb index 8725944b..4c561538 100644 --- a/spec/support/acceptance/helpers/ruby_version_helpers.rb +++ b/spec/support/acceptance/helpers/ruby_version_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../../tests/version' module AcceptanceTests diff --git a/spec/support/acceptance/helpers/step_helpers.rb b/spec/support/acceptance/helpers/step_helpers.rb index b399f60a..3440d093 100644 --- a/spec/support/acceptance/helpers/step_helpers.rb +++ b/spec/support/acceptance/helpers/step_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'file_helpers' require_relative 'gem_helpers' require_relative 'minitest_helpers' diff --git a/spec/support/acceptance/matchers/have_output.rb b/spec/support/acceptance/matchers/have_output.rb index 4f8e60e0..c2edf9ec 100644 --- a/spec/support/acceptance/matchers/have_output.rb +++ b/spec/support/acceptance/matchers/have_output.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AcceptanceTests module Matchers def have_output(output) diff --git a/spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb b/spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb index 7ca88c8f..c400b7fe 100644 --- a/spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb +++ b/spec/support/acceptance/matchers/indicate_number_of_tests_was_run_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../helpers/pluralization_helpers' require_relative '../helpers/rails_version_helpers' diff --git a/spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb b/spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb index f8488431..70d8b6b6 100644 --- a/spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb +++ b/spec/support/acceptance/matchers/indicate_that_tests_were_run_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../helpers/array_helpers' require_relative '../helpers/pluralization_helpers' require_relative '../helpers/rails_version_helpers' diff --git a/spec/support/tests/bundle.rb b/spec/support/tests/bundle.rb index 5042c910..8b653678 100644 --- a/spec/support/tests/bundle.rb +++ b/spec/support/tests/bundle.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'filesystem' require_relative 'command_runner' require_relative 'version' diff --git a/spec/support/tests/command_runner.rb b/spec/support/tests/command_runner.rb index 45798d4a..ec803b41 100644 --- a/spec/support/tests/command_runner.rb +++ b/spec/support/tests/command_runner.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'timeout' require 'shellwords' diff --git a/spec/support/tests/current_bundle.rb b/spec/support/tests/current_bundle.rb index 80a08cd9..c015b45a 100644 --- a/spec/support/tests/current_bundle.rb +++ b/spec/support/tests/current_bundle.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler' require 'appraisal' diff --git a/spec/support/tests/database.rb b/spec/support/tests/database.rb index 34061c3f..ce8cec90 100644 --- a/spec/support/tests/database.rb +++ b/spec/support/tests/database.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'database_configuration' module Tests diff --git a/spec/support/tests/database_adapters/postgresql.rb b/spec/support/tests/database_adapters/postgresql.rb index bd3b2110..1a9b54f3 100644 --- a/spec/support/tests/database_adapters/postgresql.rb +++ b/spec/support/tests/database_adapters/postgresql.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Tests module DatabaseAdapters class PostgreSQL diff --git a/spec/support/tests/database_adapters/sqlite3.rb b/spec/support/tests/database_adapters/sqlite3.rb index 1ae8edd7..69742347 100644 --- a/spec/support/tests/database_adapters/sqlite3.rb +++ b/spec/support/tests/database_adapters/sqlite3.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Tests module DatabaseAdapters class SQLite3 diff --git a/spec/support/tests/database_configuration.rb b/spec/support/tests/database_configuration.rb index fed22753..19e8b3f5 100644 --- a/spec/support/tests/database_configuration.rb +++ b/spec/support/tests/database_configuration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'database_configuration_registry' require 'delegate' diff --git a/spec/support/tests/database_configuration_registry.rb b/spec/support/tests/database_configuration_registry.rb index 76a8676b..1e87f11a 100644 --- a/spec/support/tests/database_configuration_registry.rb +++ b/spec/support/tests/database_configuration_registry.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'singleton' module Tests diff --git a/spec/support/tests/filesystem.rb b/spec/support/tests/filesystem.rb index b269a5a1..0dfa64cd 100644 --- a/spec/support/tests/filesystem.rb +++ b/spec/support/tests/filesystem.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'fileutils' module Tests diff --git a/spec/support/tests/version.rb b/spec/support/tests/version.rb index 4a2a66e4..c0d8891a 100644 --- a/spec/support/tests/version.rb +++ b/spec/support/tests/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Tests class Version def initialize(version) diff --git a/spec/support/unit/active_record/create_table.rb b/spec/support/unit/active_record/create_table.rb index 25dde568..1085c644 100644 --- a/spec/support/unit/active_record/create_table.rb +++ b/spec/support/unit/active_record/create_table.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../helpers/active_record_versions' require_relative '../helpers/database_helpers' diff --git a/spec/support/unit/attribute.rb b/spec/support/unit/attribute.rb index 21f6cb11..14ec157b 100644 --- a/spec/support/unit/attribute.rb +++ b/spec/support/unit/attribute.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests class Attribute DEFAULT_COLUMN_TYPE = :string diff --git a/spec/support/unit/capture.rb b/spec/support/unit/capture.rb index a5879954..1995810e 100644 --- a/spec/support/unit/capture.rb +++ b/spec/support/unit/capture.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Kernel # #capture, #silence_stream, and #silence_stderr are deprecated after Rails # 4.2 and will be removed in 5.0, so just override them completely here diff --git a/spec/support/unit/change_value.rb b/spec/support/unit/change_value.rb index 404fc686..d8eda458 100644 --- a/spec/support/unit/change_value.rb +++ b/spec/support/unit/change_value.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests class ChangeValue def self.call(column_type, value, value_changer) diff --git a/spec/support/unit/create_model_arguments/basic.rb b/spec/support/unit/create_model_arguments/basic.rb index 7c0c4c78..28898133 100644 --- a/spec/support/unit/create_model_arguments/basic.rb +++ b/spec/support/unit/create_model_arguments/basic.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module UnitTests diff --git a/spec/support/unit/create_model_arguments/has_many.rb b/spec/support/unit/create_model_arguments/has_many.rb index c37d457a..7eb33527 100644 --- a/spec/support/unit/create_model_arguments/has_many.rb +++ b/spec/support/unit/create_model_arguments/has_many.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module CreateModelArguments class HasMany < Basic diff --git a/spec/support/unit/create_model_arguments/uniqueness_matcher.rb b/spec/support/unit/create_model_arguments/uniqueness_matcher.rb index e2691346..01e135cc 100644 --- a/spec/support/unit/create_model_arguments/uniqueness_matcher.rb +++ b/spec/support/unit/create_model_arguments/uniqueness_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module CreateModelArguments class UniquenessMatcher < Basic diff --git a/spec/support/unit/helpers/action_pack_versions.rb b/spec/support/unit/helpers/action_pack_versions.rb index 5e6b77fa..3db27a54 100644 --- a/spec/support/unit/helpers/action_pack_versions.rb +++ b/spec/support/unit/helpers/action_pack_versions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ActionPackVersions extend self diff --git a/spec/support/unit/helpers/active_model_helpers.rb b/spec/support/unit/helpers/active_model_helpers.rb index 4f5bbc79..176226c6 100644 --- a/spec/support/unit/helpers/active_model_helpers.rb +++ b/spec/support/unit/helpers/active_model_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ActiveModelHelpers def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/active_model_versions.rb b/spec/support/unit/helpers/active_model_versions.rb index 15468cf2..b1f82d8f 100644 --- a/spec/support/unit/helpers/active_model_versions.rb +++ b/spec/support/unit/helpers/active_model_versions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ActiveModelVersions def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/active_record_versions.rb b/spec/support/unit/helpers/active_record_versions.rb index 3cbde9cf..dbcd6a57 100644 --- a/spec/support/unit/helpers/active_record_versions.rb +++ b/spec/support/unit/helpers/active_record_versions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ActiveRecordVersions def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/active_resource_builder.rb b/spec/support/unit/helpers/active_resource_builder.rb index ea60d70b..2c74ab45 100644 --- a/spec/support/unit/helpers/active_resource_builder.rb +++ b/spec/support/unit/helpers/active_resource_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ActiveResourceBuilder def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/allow_value_matcher_helpers.rb b/spec/support/unit/helpers/allow_value_matcher_helpers.rb index c4143989..c9b36166 100644 --- a/spec/support/unit/helpers/allow_value_matcher_helpers.rb +++ b/spec/support/unit/helpers/allow_value_matcher_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../record_with_different_error_attribute_builder' require_relative '../record_builder_with_i18n_validation_message' diff --git a/spec/support/unit/helpers/application_configuration_helpers.rb b/spec/support/unit/helpers/application_configuration_helpers.rb index 87d013bc..f8e7eaf3 100644 --- a/spec/support/unit/helpers/application_configuration_helpers.rb +++ b/spec/support/unit/helpers/application_configuration_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ApplicationConfigurationHelpers def with_belongs_to_as_required_by_default(&block) diff --git a/spec/support/unit/helpers/class_builder.rb b/spec/support/unit/helpers/class_builder.rb index 3d1477b5..28a133cc 100644 --- a/spec/support/unit/helpers/class_builder.rb +++ b/spec/support/unit/helpers/class_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ClassBuilder def define_module(*args, &block) diff --git a/spec/support/unit/helpers/column_type_helpers.rb b/spec/support/unit/helpers/column_type_helpers.rb index fe7faa2f..dae5ac68 100644 --- a/spec/support/unit/helpers/column_type_helpers.rb +++ b/spec/support/unit/helpers/column_type_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ColumnTypeHelpers def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/confirmation_matcher_helpers.rb b/spec/support/unit/helpers/confirmation_matcher_helpers.rb index 70933203..cd5a41d8 100644 --- a/spec/support/unit/helpers/confirmation_matcher_helpers.rb +++ b/spec/support/unit/helpers/confirmation_matcher_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../record_validating_confirmation_builder' require_relative '../record_builder_with_i18n_validation_message' diff --git a/spec/support/unit/helpers/controller_builder.rb b/spec/support/unit/helpers/controller_builder.rb index e5e651a8..fce229a9 100644 --- a/spec/support/unit/helpers/controller_builder.rb +++ b/spec/support/unit/helpers/controller_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ControllerBuilder def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/database_helpers.rb b/spec/support/unit/helpers/database_helpers.rb index 24a19497..e7645cd7 100644 --- a/spec/support/unit/helpers/database_helpers.rb +++ b/spec/support/unit/helpers/database_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module DatabaseHelpers def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/i18n_faker.rb b/spec/support/unit/helpers/i18n_faker.rb index a693d114..7cde5218 100644 --- a/spec/support/unit/helpers/i18n_faker.rb +++ b/spec/support/unit/helpers/i18n_faker.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module I18nFaker extend self diff --git a/spec/support/unit/helpers/mailer_builder.rb b/spec/support/unit/helpers/mailer_builder.rb index 9e284f03..39ff976a 100644 --- a/spec/support/unit/helpers/mailer_builder.rb +++ b/spec/support/unit/helpers/mailer_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module MailerBuilder def self.configure_example_group(example_group) diff --git a/spec/support/unit/helpers/message_helpers.rb b/spec/support/unit/helpers/message_helpers.rb index 67203387..4b561326 100644 --- a/spec/support/unit/helpers/message_helpers.rb +++ b/spec/support/unit/helpers/message_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module MessageHelpers include Shoulda::Matchers::WordWrap diff --git a/spec/support/unit/helpers/model_builder.rb b/spec/support/unit/helpers/model_builder.rb index e2e44ebb..5937afbc 100644 --- a/spec/support/unit/helpers/model_builder.rb +++ b/spec/support/unit/helpers/model_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'class_builder' module UnitTests diff --git a/spec/support/unit/helpers/rails_versions.rb b/spec/support/unit/helpers/rails_versions.rb index 2b578739..1146b31c 100644 --- a/spec/support/unit/helpers/rails_versions.rb +++ b/spec/support/unit/helpers/rails_versions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module RailsVersions extend self diff --git a/spec/support/unit/helpers/validation_matcher_scenario_helpers.rb b/spec/support/unit/helpers/validation_matcher_scenario_helpers.rb index 8e5579a9..919e9bb7 100644 --- a/spec/support/unit/helpers/validation_matcher_scenario_helpers.rb +++ b/spec/support/unit/helpers/validation_matcher_scenario_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ValidationMatcherScenarioHelpers def self.configure_example_group(example_group) diff --git a/spec/support/unit/i18n.rb b/spec/support/unit/i18n.rb index 3f461484..85830d3f 100644 --- a/spec/support/unit/i18n.rb +++ b/spec/support/unit/i18n.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec.configure do |config| config.after do # Clear any translations added during tests by telling the backend to diff --git a/spec/support/unit/load_environment.rb b/spec/support/unit/load_environment.rb index e4dface3..2b63db55 100644 --- a/spec/support/unit/load_environment.rb +++ b/spec/support/unit/load_environment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../tests/current_bundle' require_relative 'rails_application' diff --git a/spec/support/unit/matchers/deprecate.rb b/spec/support/unit/matchers/deprecate.rb index 37527b63..660d7c8f 100644 --- a/spec/support/unit/matchers/deprecate.rb +++ b/spec/support/unit/matchers/deprecate.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module Matchers def deprecate(old_method, new_method) diff --git a/spec/support/unit/matchers/fail_with_message_including_matcher.rb b/spec/support/unit/matchers/fail_with_message_including_matcher.rb index 8c1e4006..db6c9329 100644 --- a/spec/support/unit/matchers/fail_with_message_including_matcher.rb +++ b/spec/support/unit/matchers/fail_with_message_including_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module Matchers extend RSpec::Matchers::DSL diff --git a/spec/support/unit/matchers/fail_with_message_matcher.rb b/spec/support/unit/matchers/fail_with_message_matcher.rb index c86783d5..03d31bd7 100644 --- a/spec/support/unit/matchers/fail_with_message_matcher.rb +++ b/spec/support/unit/matchers/fail_with_message_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module Matchers extend RSpec::Matchers::DSL diff --git a/spec/support/unit/matchers/match_against.rb b/spec/support/unit/matchers/match_against.rb index 76cf1ee4..97fb1a78 100644 --- a/spec/support/unit/matchers/match_against.rb +++ b/spec/support/unit/matchers/match_against.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module Matchers def match_against(object) diff --git a/spec/support/unit/matchers/print_warning_including.rb b/spec/support/unit/matchers/print_warning_including.rb index 03577b2d..fff4f356 100644 --- a/spec/support/unit/matchers/print_warning_including.rb +++ b/spec/support/unit/matchers/print_warning_including.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module Matchers def print_warning_including(expected_warning) diff --git a/spec/support/unit/model_creation_strategies/active_model.rb b/spec/support/unit/model_creation_strategies/active_model.rb index 45b5f755..af4906cf 100644 --- a/spec/support/unit/model_creation_strategies/active_model.rb +++ b/spec/support/unit/model_creation_strategies/active_model.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ModelCreationStrategies class ActiveModel diff --git a/spec/support/unit/model_creation_strategies/active_record.rb b/spec/support/unit/model_creation_strategies/active_record.rb index 54dcc37e..a354b229 100644 --- a/spec/support/unit/model_creation_strategies/active_record.rb +++ b/spec/support/unit/model_creation_strategies/active_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ModelCreationStrategies class ActiveRecord diff --git a/spec/support/unit/model_creators.rb b/spec/support/unit/model_creators.rb index 60274c7d..4e34f588 100644 --- a/spec/support/unit/model_creators.rb +++ b/spec/support/unit/model_creators.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UnitTests module ModelCreators class << self diff --git a/spec/support/unit/model_creators/active_model.rb b/spec/support/unit/model_creators/active_model.rb index dd0d6801..d5d5f75e 100644 --- a/spec/support/unit/model_creators/active_model.rb +++ b/spec/support/unit/model_creators/active_model.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../model_creators' require 'forwardable' diff --git a/spec/support/unit/model_creators/active_record.rb b/spec/support/unit/model_creators/active_record.rb index 23898a19..c548172e 100644 --- a/spec/support/unit/model_creators/active_record.rb +++ b/spec/support/unit/model_creators/active_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../model_creators' require 'forwardable' diff --git a/spec/support/unit/model_creators/active_record/has_and_belongs_to_many.rb b/spec/support/unit/model_creators/active_record/has_and_belongs_to_many.rb index 267c0a66..adbbe781 100644 --- a/spec/support/unit/model_creators/active_record/has_and_belongs_to_many.rb +++ b/spec/support/unit/model_creators/active_record/has_and_belongs_to_many.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../../model_creators' require 'forwardable' diff --git a/spec/support/unit/model_creators/active_record/has_many.rb b/spec/support/unit/model_creators/active_record/has_many.rb index 77d293d4..7e8210a7 100644 --- a/spec/support/unit/model_creators/active_record/has_many.rb +++ b/spec/support/unit/model_creators/active_record/has_many.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../../model_creators' require 'forwardable' diff --git a/spec/support/unit/model_creators/active_record/uniqueness_matcher.rb b/spec/support/unit/model_creators/active_record/uniqueness_matcher.rb index cd23ce02..8d1d9cf0 100644 --- a/spec/support/unit/model_creators/active_record/uniqueness_matcher.rb +++ b/spec/support/unit/model_creators/active_record/uniqueness_matcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../../model_creators' require 'forwardable' diff --git a/spec/support/unit/model_creators/basic.rb b/spec/support/unit/model_creators/basic.rb index 1d549c5a..22b335fd 100644 --- a/spec/support/unit/model_creators/basic.rb +++ b/spec/support/unit/model_creators/basic.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module UnitTests diff --git a/spec/support/unit/rails_application.rb b/spec/support/unit/rails_application.rb index 2f5d5dc7..32bd7707 100644 --- a/spec/support/unit/rails_application.rb +++ b/spec/support/unit/rails_application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../tests/bundle' require_relative '../tests/command_runner' require_relative '../tests/database' diff --git a/spec/support/unit/record_builder_with_i18n_validation_message.rb b/spec/support/unit/record_builder_with_i18n_validation_message.rb index 1cc1d2ab..ef38f845 100644 --- a/spec/support/unit/record_builder_with_i18n_validation_message.rb +++ b/spec/support/unit/record_builder_with_i18n_validation_message.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'delegate' module UnitTests diff --git a/spec/support/unit/record_validating_confirmation_builder.rb b/spec/support/unit/record_validating_confirmation_builder.rb index da32262c..c6078e93 100644 --- a/spec/support/unit/record_validating_confirmation_builder.rb +++ b/spec/support/unit/record_validating_confirmation_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'helpers/model_builder' module UnitTests diff --git a/spec/support/unit/record_with_different_error_attribute_builder.rb b/spec/support/unit/record_with_different_error_attribute_builder.rb index d6405b72..dda7d1fa 100644 --- a/spec/support/unit/record_with_different_error_attribute_builder.rb +++ b/spec/support/unit/record_with_different_error_attribute_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'helpers/model_builder' module UnitTests diff --git a/spec/support/unit/shared_examples/ignoring_interference_by_writer.rb b/spec/support/unit/shared_examples/ignoring_interference_by_writer.rb index 2fc45360..c95c56ce 100644 --- a/spec/support/unit/shared_examples/ignoring_interference_by_writer.rb +++ b/spec/support/unit/shared_examples/ignoring_interference_by_writer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + shared_examples_for 'ignoring_interference_by_writer' do |common_config| valid_tests = [ :accept_if_qualified_but_changing_value_does_not_interfere, diff --git a/spec/support/unit/shared_examples/numerical_submatcher.rb b/spec/support/unit/shared_examples/numerical_submatcher.rb index 9ac97772..491755d8 100644 --- a/spec/support/unit/shared_examples/numerical_submatcher.rb +++ b/spec/support/unit/shared_examples/numerical_submatcher.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + shared_examples 'a numerical submatcher' do it 'implements the with_message method' do expect(subject).to respond_to(:with_message).with(1).arguments diff --git a/spec/support/unit/shared_examples/set_session_or_flash.rb b/spec/support/unit/shared_examples/set_session_or_flash.rb index dbd4f08c..03868bd5 100644 --- a/spec/support/unit/shared_examples/set_session_or_flash.rb +++ b/spec/support/unit/shared_examples/set_session_or_flash.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + shared_examples_for 'set session or flash matcher' do context 'without any qualifiers' do it 'produces the right description' do diff --git a/spec/support/unit/validation_matcher_scenario.rb b/spec/support/unit/validation_matcher_scenario.rb index 0a356756..a4d4ccc5 100644 --- a/spec/support/unit/validation_matcher_scenario.rb +++ b/spec/support/unit/validation_matcher_scenario.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' module UnitTests diff --git a/spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb index 81b8249b..04f77010 100644 --- a/spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::CallbackMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/filter_param_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/filter_param_matcher_spec.rb index 084bfd4c..1a4601c1 100644 --- a/spec/unit/shoulda/matchers/action_controller/filter_param_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/filter_param_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::FilterParamMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/permit_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/permit_matcher_spec.rb index 509a9bbd..e69cf7b6 100644 --- a/spec/unit/shoulda/matchers/action_controller/permit_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/permit_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::PermitMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb index 31311043..36026be4 100644 --- a/spec/unit/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::RedirectToMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb index 1ad1cde7..474c5fd6 100644 --- a/spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::RenderTemplateMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb index 571d633e..4dbc6511 100644 --- a/spec/unit/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::RenderWithLayoutMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb index 4e281d66..22348b50 100644 --- a/spec/unit/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::RescueFromMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/respond_with_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/respond_with_matcher_spec.rb index ef5b4e5d..c58dc1b8 100644 --- a/spec/unit/shoulda/matchers/action_controller/respond_with_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/respond_with_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::RespondWithMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb index db397221..76dd5f55 100644 --- a/spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/route_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe 'Shoulda::Matchers::ActionController::RouteMatcher', type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/route_params_spec.rb b/spec/unit/shoulda/matchers/action_controller/route_params_spec.rb index dcc34816..3407373c 100644 --- a/spec/unit/shoulda/matchers/action_controller/route_params_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/route_params_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::RouteParams, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb index cb74a31a..bb849219 100644 --- a/spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/set_flash_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::SetFlashMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb index c9556502..fd87d671 100644 --- a/spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::SetSessionMatcher, type: :controller do diff --git a/spec/unit/shoulda/matchers/action_controller/set_session_or_flash_matcher_spec.rb b/spec/unit/shoulda/matchers/action_controller/set_session_or_flash_matcher_spec.rb index a7fa58c6..04faee90 100644 --- a/spec/unit/shoulda/matchers/action_controller/set_session_or_flash_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/action_controller/set_session_or_flash_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActionController::SetSessionOrFlashMatcher do diff --git a/spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb index 3c374f3c..9f53c4c8 100644 --- a/spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::AllowMassAssignmentOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb index a44435ca..74444549 100644 --- a/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/disallow_value_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/disallow_value_matcher_spec.rb index 436204aa..e1022d1f 100644 --- a/spec/unit/shoulda/matchers/active_model/disallow_value_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/disallow_value_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::DisallowValueMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb index d3add54f..9df80096 100644 --- a/spec/unit/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/have_secure_password_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::HaveSecurePasswordMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/helpers_spec.rb b/spec/unit/shoulda/matchers/active_model/helpers_spec.rb index b8178054..564d02e5 100644 --- a/spec/unit/shoulda/matchers/active_model/helpers_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/helpers_spec.rb @@ -1,4 +1,6 @@ # encoding: UTF-8 +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::Helpers do diff --git a/spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb index 54627853..9c6f5051 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidateAbsenceOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb index 8cabdd36..1068b11b 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidateAcceptanceOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb index ef01fe1c..36144a63 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidateConfirmationOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb index 899316d3..3ec5a201 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidateExclusionOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb index bc18c2d5..b86fd3a7 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidateInclusionOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb index 3cdf2c0f..0a8c0a12 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidateLengthOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb index 6d492f01..d0ebba49 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidateNumericalityOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb index 49c12e1f..cab84537 100644 --- a/spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveModel::ValidatePresenceOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb index 7b3da7da..d4039340 100644 --- a/spec/unit/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::AcceptNestedAttributesForMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb index 29f5a20a..3cbebf0d 100644 --- a/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::AssociationMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb b/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb index 6be80728..e7c17c7f 100644 --- a/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::AssociationMatchers::ModelReflection do diff --git a/spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb index 8b3517f6..ae7be8ed 100644 --- a/spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::DefineEnumForMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/have_db_column_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/have_db_column_matcher_spec.rb index 1d23259a..e970b716 100644 --- a/spec/unit/shoulda/matchers/active_record/have_db_column_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/have_db_column_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::HaveDbColumnMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb index 2c1025c5..f4cf8c87 100644 --- a/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::HaveDbIndexMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb index 9a43887f..1dd70017 100644 --- a/spec/unit/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::HaveReadonlyAttributeMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/have_secure_token_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/have_secure_token_matcher_spec.rb index bb2ac9ee..b762ce2e 100644 --- a/spec/unit/shoulda/matchers/active_record/have_secure_token_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/have_secure_token_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' # rubocop:disable Metrics/BlockLength diff --git a/spec/unit/shoulda/matchers/active_record/serialize_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/serialize_matcher_spec.rb index 07cc1d36..1387ffb6 100644 --- a/spec/unit/shoulda/matchers/active_record/serialize_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/serialize_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::SerializeMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/active_record/validate_uniqueness_of_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/validate_uniqueness_of_matcher_spec.rb index f39ef957..2bc60fdb 100644 --- a/spec/unit/shoulda/matchers/active_record/validate_uniqueness_of_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/validate_uniqueness_of_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::ActiveRecord::ValidateUniquenessOfMatcher, type: :model do diff --git a/spec/unit/shoulda/matchers/doublespeak/double_collection_spec.rb b/spec/unit/shoulda/matchers/doublespeak/double_collection_spec.rb index 88be260a..0a31876a 100644 --- a/spec/unit/shoulda/matchers/doublespeak/double_collection_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak/double_collection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers::Doublespeak diff --git a/spec/unit/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb b/spec/unit/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb index 2e4d87da..d22ead4e 100644 --- a/spec/unit/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak/double_implementation_registry_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers::Doublespeak diff --git a/spec/unit/shoulda/matchers/doublespeak/double_spec.rb b/spec/unit/shoulda/matchers/doublespeak/double_spec.rb index 737e20da..5705f9d2 100644 --- a/spec/unit/shoulda/matchers/doublespeak/double_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak/double_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers::Doublespeak diff --git a/spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb b/spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb index e63b5335..e9e60b4c 100644 --- a/spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak/object_double_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers::Doublespeak diff --git a/spec/unit/shoulda/matchers/doublespeak/proxy_implementation_spec.rb b/spec/unit/shoulda/matchers/doublespeak/proxy_implementation_spec.rb index d733780b..50e2dd6b 100644 --- a/spec/unit/shoulda/matchers/doublespeak/proxy_implementation_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak/proxy_implementation_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers::Doublespeak diff --git a/spec/unit/shoulda/matchers/doublespeak/stub_implementation_spec.rb b/spec/unit/shoulda/matchers/doublespeak/stub_implementation_spec.rb index 4500b3b8..247cc7a9 100644 --- a/spec/unit/shoulda/matchers/doublespeak/stub_implementation_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak/stub_implementation_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers::Doublespeak diff --git a/spec/unit/shoulda/matchers/doublespeak/world_spec.rb b/spec/unit/shoulda/matchers/doublespeak/world_spec.rb index 9b0ae96a..0af6cde5 100644 --- a/spec/unit/shoulda/matchers/doublespeak/world_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak/world_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers::Doublespeak diff --git a/spec/unit/shoulda/matchers/doublespeak_spec.rb b/spec/unit/shoulda/matchers/doublespeak_spec.rb index c64fab63..a37c8037 100644 --- a/spec/unit/shoulda/matchers/doublespeak_spec.rb +++ b/spec/unit/shoulda/matchers/doublespeak_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doublespeak_spec_helper' module Shoulda::Matchers diff --git a/spec/unit/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb b/spec/unit/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb index f44dcbf5..d68af217 100644 --- a/spec/unit/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb +++ b/spec/unit/shoulda/matchers/independent/delegate_method_matcher/stubbed_target_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::Independent::DelegateMethodMatcher::StubbedTarget do diff --git a/spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb b/spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb index 80e952ec..0d864459 100644 --- a/spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe Shoulda::Matchers::Independent::DelegateMethodMatcher do diff --git a/spec/unit/shoulda/matchers/routing/route_matcher_spec.rb b/spec/unit/shoulda/matchers/routing/route_matcher_spec.rb index 38f56023..40ba8272 100644 --- a/spec/unit/shoulda/matchers/routing/route_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/routing/route_matcher_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'unit_spec_helper' describe 'Shoulda::Matchers::Routing::RouteMatcher', type: :routing do diff --git a/spec/unit/shoulda/matchers/util/word_wrap_spec.rb b/spec/unit/shoulda/matchers/util/word_wrap_spec.rb index 7e9f62aa..547ca6c5 100644 --- a/spec/unit/shoulda/matchers/util/word_wrap_spec.rb +++ b/spec/unit/shoulda/matchers/util/word_wrap_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'shoulda/matchers/util/word_wrap' diff --git a/spec/unit_spec_helper.rb b/spec/unit_spec_helper.rb index 080eb913..98672309 100644 --- a/spec/unit_spec_helper.rb +++ b/spec/unit_spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'support/unit/load_environment' require 'rspec/rails' diff --git a/spec/warnings_spy.rb b/spec/warnings_spy.rb index 9dae2dde..f1bf6389 100644 --- a/spec/warnings_spy.rb +++ b/spec/warnings_spy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' require File.expand_path('../warnings_spy/filesystem', __FILE__) diff --git a/spec/warnings_spy/filesystem.rb b/spec/warnings_spy/filesystem.rb index 75306814..780e4413 100644 --- a/spec/warnings_spy/filesystem.rb +++ b/spec/warnings_spy/filesystem.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'fileutils' class WarningsSpy diff --git a/spec/warnings_spy/partitioner.rb b/spec/warnings_spy/partitioner.rb index c6a70531..af4d3bd8 100644 --- a/spec/warnings_spy/partitioner.rb +++ b/spec/warnings_spy/partitioner.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' class WarningsSpy diff --git a/spec/warnings_spy/reader.rb b/spec/warnings_spy/reader.rb index 5dfcde09..f04f25b8 100644 --- a/spec/warnings_spy/reader.rb +++ b/spec/warnings_spy/reader.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class WarningsSpy class Reader attr_reader :warning_groups diff --git a/spec/warnings_spy/reporter.rb b/spec/warnings_spy/reporter.rb index 5eff50eb..86d905b3 100644 --- a/spec/warnings_spy/reporter.rb +++ b/spec/warnings_spy/reporter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'forwardable' class WarningsSpy diff --git a/tasks/documentation.rb b/tasks/documentation.rb index e0d5289a..8914e318 100644 --- a/tasks/documentation.rb +++ b/tasks/documentation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../lib/shoulda/matchers/version' require 'erb'