ubicloud/spec
Jeremy Evans 3e33052fc8 Remove explicit calls to Clover.freeze
In production mode and when running the frozen specs, clover_freeze
now calls freeze on all autoloaded constants, and Clover is an
autoloaded constant. Both the specs and config.ru call clover_freeze
unconditionally.

This also removes the override of Clover.freeze.  In production and
when running the frozen specs, it would call
Sequel::Model.freeze_descendants and DB.freeze.  The freezing of all
autoloaded constants handles DB.freeze, and clover_freeze calls
Sequel::Model.freeze_descendants before freezing all autoloaded
constants.

This does remove the
`Sequel::Model.descendants.each(&:finalize_associations)` when running
non-frozen specs, but that's solely an optimization and I don't think
it is worth the complexity.

The `return self if frozen?` code was added to work around a bug
in autoload_hash_branches, where Roda.freeze would break if you
called it the second time on the same object. Now that Clover.freeze
is only called once, it is not needed.
2024-11-14 08:41:56 -08:00
..
clec Introduce autoloading of a test helper 2024-10-29 07:40:12 -07:00
lib Add load balancer stack option 2024-11-06 13:04:07 +01:00
model Remove helsinki region 2024-11-05 23:47:48 +03:00
prog Pop from DestroyGithubInstallation if installation already destroyed 2024-11-12 12:17:50 +00:00
routes Remove explicit calls to Clover.freeze 2024-11-14 08:41:56 -08:00
scheduling Assemble VMs with specified number of GPUs 2024-10-31 12:44:39 +01:00
serializers Combine all serializers under top level namespace 2024-05-28 21:42:31 +03:00
config_spec.rb Increase Config test coverage and delete unused lines 2023-08-07 01:05:05 +03:00
coverage_helper.rb Parallelize unit tests 2024-03-04 10:39:35 +01:00
db_spec.rb Add test to check that collations of text columns are "C" 2023-08-23 07:19:34 -07:00
resource_methods_spec.rb Remove all skip_if_frozen{_models} calls in the specs 2024-10-30 12:08:24 -07:00
spec_helper.rb Remove explicit calls to Clover.freeze 2024-11-14 08:41:56 -08:00
thawed_mock.rb Freeze additional classes and modules that are not in AUTOLOAD_CONSTANTS 2024-10-30 17:01:35 -07:00
ubid_spec.rb Relax time range when testing timestamp based ubids. 2024-11-06 14:42:23 -08:00