faker-ruby / faker

A library for generating fake data such as names, addresses, and phone numbers.
MIT License
11.27k stars 3.18k forks source link

Deprecator improvements #2997

Closed stefannibrasil closed 2 months ago

stefannibrasil commented 2 months ago

In preparation for removing deprecations for certain generators, this commit documents the Deprecator and how to test deprecated generators. It also adds a unit test using newly added matchers based on Rails deprecation matchers. This new test is independent from any "real" deprecated generator that can be removed at any time.

With this change, we can remove generators in a follow up PR while having the Deprecator covered and documented.