-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce suspenders:factories
generator
#1136
Conversation
856e821
to
ed5e4a6
Compare
destination Rails.root | ||
setup :prepare_destination | ||
teardown :restore_destination |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
destination
is set to test/dummy
, which is a blank Rails app.
setup
and teardown
handle adding or removing files needed for this specific test to run. For example, adding the Gemfile
.
44f783e
to
2a0f7ff
Compare
d1aa50b
to
e93890a
Compare
2a0f7ff
to
84e0c95
Compare
574f067
to
197137f
Compare
197137f
to
e2e3f0b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
@mike-burns that was an oversite on my part. Fixed here: 1455dc1 |
suspenders:factory_bot
generatorsuspenders:factories
generator
50f1603
to
d2e4b85
Compare
d2e4b85
to
6f436bf
Compare
7409c81
to
012dbad
Compare
Maintains functionally with the [existing generator][] while adding support for the [default Rails test suite]. With this change, the generator can be invoked on a Rails application that uses RSpec and the default Rails test suite. Adds generator which adds a test to lint all Factories in an effort to improve developer experience. Additionally, we remove the generation of the `dev:prime` task as we felt that should be the responsibly of another generator. [existing generator]: https://github.com/thoughtbot/suspenders/blob/main/lib/suspenders/generators/factories_generator.rb [default Rails test suite]: https://guides.rubyonrails.org/testing.html
012dbad
to
314dd72
Compare
Maintains functionally with the [existing generator][] while adding support for the [default Rails test suite]. With this change, the generator can be invoked on a Rails application that uses RSpec or the [default Rails test suite][]. Adds generator which adds a test to lint all Factories in an effort to improve developer experience. Additionally, we remove the generation of the `dev:prime` task as we felt that should be the responsibly of another generator. [existing generator]: https://github.com/thoughtbot/suspenders/blob/main/lib/suspenders/generators/factories_generator.rb [default Rails test suite]: https://guides.rubyonrails.org/testing.html
Maintains functionally with the existing generator while adding
support for the default Rails test suite. With this change, the
generator can be invoked on a Rails application that use RSpec and the
default Rails test suite.
Adds generator which adds a test to lint all Factories in an effort to
improve developer experience.
Additionally, we remove the generation of the
dev:prime
task as wefelt that should be the responsibly of another generator.
How to review this pull request
Review is easier when compared with the existing generator.
Additionally, if you want to manually test these changes, spin up a new rails app and add the following: