faker-ruby / faker

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

Add `Deprecator.skip_warning?` ability to silence deprecators on tests #2956

Closed keshavbiswa closed 4 months ago

keshavbiswa commented 6 months ago

Motivation / Background

Fixes: #2948

This Pull Request has been created because We want the ability to silence output warnings for Deprecated Generators in tests.

Checklist

Before submitting the PR make sure the following are checked:

If you're proposing a new generator or locale:

keshavbiswa commented 5 months ago

@thdaraujo Thanks, I'll take a look at your suggestion and also figure out why you're seeing the deprecation message.

keshavbiswa commented 5 months ago

@thdaraujo @stefannibrasil I have fixed the issue and have updated your requested changes.

keshavbiswa commented 5 months ago

@stefannibrasil Reordered it, I misunderstood earlier