| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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. With this change, we can remove generators in a follow up PR while having the Deprecator covered and documented.
|
|
||
| # Based on Rails ActiveSupport Deprecator | ||
| # https://github.com/rails/rails/blob/6f0d1ad14b92b9f5906e44740fce8b4f1c7075dc/activesupport/lib/active_support/deprecation/constant_accessor.rb | ||
| # https://github.com/rails/rails/blob/main/activesupport/lib/active_support/deprecation/constant_accessor.rb |
There was a problem hiding this comment.
The changes here are mostly documentation and identation.
Sorry, something went wrong.
| @@ -0,0 +1,41 @@ | |||
| # frozen_string_literal: true | |||
There was a problem hiding this comment.
Moved this file from test/faker/ to test/faker/support.
Sorry, something went wrong.
|
|
||
| gem 'benchmark' | ||
| gem 'minitest', '5.25.0' | ||
| gem 'minitest', '5.25.1' |
There was a problem hiding this comment.
Ruby head was not happy with the old version. This new version works for all Ruby versions in CI.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.