dry-initializer/spec
Nikita Shilnikov 679014fa3a
Revert adding field name to constraint error
There's a bunch of problems with that improvement:

1. It changes the type of error that is thrown by dry-types. It broke rom's specs (though I would argue it wasn't declared as part of the public interface and rom shouldn't have committed to a specific error)
2. It refers to dry-types explicitly though it wasn't a hard dependency. The following example fails with `uninitialized constant Dry::Types`:
```
class Foo
  extend Dry::Initializer

  param :foo, type: proc { Integer(_1) }
end

Foo.new('abc')
```

I decided we should ship 3.1.1 without this change and think the whole thing through. Probably, we should add a dry-types extension to dry-initializer that improves errors but requires explicit activation.
2022-01-18 07:42:25 +03:00
..
support [devtools] sync 2020-09-26 15:19:01 +00:00
attributes_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
coercion_of_nil_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
custom_dispatchers_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
custom_initializer_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
default_values_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
definition_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
invalid_default_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
list_type_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
missed_default_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
nested_type_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
optional_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
options_tolerance_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
public_attributes_utility_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
reader_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
repetitive_definitions_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
several_assignments_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
spec_helper.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
subclassing_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00
type_argument_spec.rb Revert adding field name to constraint error 2022-01-18 07:42:25 +03:00
type_constraint_spec.rb Revert adding field name to constraint error 2022-01-18 07:42:25 +03:00
value_coercion_via_dry_types_spec.rb [refactor] disable monkey patching in rspec config 2022-01-16 10:39:36 +03:00