dry-configurable/spec/integration/dry/configurable
Tim Riley 9c415e1015
Exit from `Config#finalize!` if already frozen (#155)
This saves the work of attempting to finalize every nested config if `finalize!` is called a second time.

This make `finalize!` a one-shot operation, i.e. you can't call `finalize!` first, followed by `finalize!(freeze_values: true)`, but doing this would not be expected usage.

Also: rename error classes:

- `Dry::Configurable::AlreadyIncluded` -> `AlreadyIncludedError`
- `Dry::Configurable::FrozenConfig` -> `FrozenConfigError`
2022-10-15 20:48:45 +11:00
..
config_spec.rb Exit from `Config#finalize!` if already frozen (#155) 2022-10-15 20:48:45 +11:00
configure_spec.rb rubocop -A lib spec 2021-06-03 12:59:21 +02:00
defaults_spec.rb Add extension option to support `Undefined` as default value (#141) 2022-09-27 06:23:55 +10:00
included_spec.rb Exit from `Config#finalize!` if already frozen (#155) 2022-10-15 20:48:45 +11:00
setting_spec.rb Exit from `Config#finalize!` if already frozen (#155) 2022-10-15 20:48:45 +11:00