This is much easier and safer than "guessing" the class name based on the validator name. That can cause a problem when another class with the same name is found. The "guessing" was only added because we used OpenStruct in the tests, but we shouldn't change the code only to make tests run. I changed the tests to use the real entities, with auto-validation disabled in the constructor, so we can test the validator manually. |
||
|---|---|---|
| .. | ||
| fixture_builder.rb | ||
| helper_methods.rb | ||
| legacy_helper.rb | ||
| shared_entity_specs.rb | ||
| shared_magic_envelope_specs.rb | ||
| shared_parser_specs.rb | ||
| shared_signable_specs.rb | ||
| shared_validator_specs.rb | ||