ubicloud/spec/routes/web
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
..
project Remove all skip_if_frozen{_models} calls in the specs 2024-10-30 12:08:24 -07:00
webhook Remove all skip_if_frozen{_models} calls in the specs 2024-10-30 12:08:24 -07:00
account_spec.rb Add tests for two-factor authentication feature 2023-12-09 14:04:47 +03:00
auth_spec.rb Destroy account's usage alerts while closing account 2024-11-12 12:17:05 +00:00
clover_web_spec.rb Log web exceptions with Clog 2024-11-02 14:42:08 -07:00
firewall_spec.rb Consistently use private_subnet_id for parameter name 2024-11-12 13:51:00 -08:00
github_spec.rb Remove all skip_if_frozen{_models} calls in the specs 2024-10-30 12:08:24 -07:00
load_balancer_spec.rb Remove helsinki region 2024-11-05 23:47:48 +03:00
private_subnet_spec.rb Remove helsinki region 2024-11-05 23:47:48 +03:00
project_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
vm_spec.rb Remove helsinki region 2024-11-05 23:47:48 +03:00