Phil Pirozhkov
Phil Pirozhkov
> the following two statements are not equivalent, and you should always use the latter! ```ruby # Given use of a driver where the page is loaded when visit returns...
So we are talking about the following risk: 1. We’ve had a page with no X, and have a test to cover that with ‘have_no_X’ 2. We’ve later made everything...
Thanks for reporting! There are two problems at a gpance. 1. According to https://github.com/rubocop/rubocop-factory_bot/blob/0da664d97a8632769451a1633eafd852db5cf2a4/spec/rubocop/cop/factory_bot/association_style_spec.rb#L168, it’s just the build strategy that won’t work. But how would others work? 2. AttributeDefinedStatically seems...
Thanks for reporting. We could allow for length 1 even if we detect that arguments include method calls here https://github.com/rubocop/rubocop-factory_bot/blob/0da664d97a8632769451a1633eafd852db5cf2a4/lib/rubocop/cop/factory_bot/create_list.rb#L128 and line 125, too. I don't think our specs describe...
How does this work? Is it really transient? https://github.com/thoughtbot/factory_bot/blob/main/GETTING_STARTED.md#with-associations You could still refer to ‘location’ if you used ‘association’ instead of ‘build’, right? With this in mind, can this be...
I see. Thanks for reporting. Might be a duplicate of https://github.com/rubocop/rubocop-factory_bot/issues/61, but not necessarily.
A PR is welcome, @Abdullah-l
What does the build(:address) do exactly?
Is address a model and an association in visits model?
Hi! Thanks for the suggestion. Personally, I'm quite conservative, and can't remember using `create_pair` deliberately in practice. "Pair" sounds like those two are somehow related, apart from being in the...