-
Notifications
You must be signed in to change notification settings - Fork 2
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
Not copying Folio factories to main app, just add them to lookup #143
base: master
Are you sure you want to change the base?
Conversation
…nt; small improvement in mailer deprecation check
…nt; small improvement in mailer deprecation check
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.
Nerozumim motivaci pro cely tenhle PR. Co je spatne na tom, ze se volaji folio factories ve factories souboru v projektu? Tech pripadu tam muze byt vic, napr.
require_relative Folio::Engine.root.join("test/factories")
require_relative Boutique::Engine.root.join("test/factories")
require 'factory_bot_rails' | ||
rescue LoadError | ||
end | ||
|
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.
Proc begin/rescue a proc ne jen v test env?
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.
Ne v každém projektu nutně máme factory_bot_rails
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.
Například Folio mělo do teď jen factory_bot
(viz změny v gemspecu)
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.
V kazdem projektu s foliem a s factories ale ano, nebo ne?
@@ -87,7 +87,6 @@ def copy_templates | |||
"db/migrate/20220214083648_rm_private_attachments_mime_type_column.rb", | |||
"lib/tasks/developer_tools.rake", | |||
"public/maintenance.html", | |||
"test/factories.rb", | |||
"test/test_helper.rb", |
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.
@foton Takhle tam ale ten soubor vubec nevznikne. Soubor tam chceme.
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.
Ano, to je to kopírování,, které se snažím nahradit linkováním.
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.
Takhle to ale zustalo v templates. Radeji nez vyhazovat odsud bych upravil ten soubor. Abych ho nemusel v novem projektu zakladat.
Oprava pár drobností na které jsem narazil při vývoji a
vypuštění kopírování factories do hlavní aplikace. Místo toho se jen přidají (z Folia) do cest pro hledání factories.
Takže zůstanou tam kam patří (Folio), ale dají se použít i z hlavní aplikace (resp jejích testů).