-
This started happening after upgrade to 5.8.1 from 5.7.5
We use Factory bot to create resources for testing and when creating a record with association Bullet complains about unnecessary eager loadin…
-
RuboCop suggests confusing solution on following code:
``` ruby
files = Dir[Rails.root.join('path/*')]
```
## Expected behavior
RuboCop suggests to rewrite `Dir[Rails.root.join(...)]` to `Rai…
-
### Problem this feature will solve
As ActiveStorage is a proper part of rails now, it would be nice if factory bot provided documentation for attaching a file as an active storage attachment. (I'd s…
-
It would be better to have the source review that currently happens on the submitrequest directly on the gitea PRs. Convert the existing check_source/factory-auto bot to operate on MR.s
-
```
spec/factories/holdings.rb:7:14: C: FactoryBot/FactoryAssociationWithStrategy: Use an implicit, explicit or inline definition instead of hard coding a strategy for setting association within fact…
-
Looking at the RAGAs sample notebook ...
[https://github.com/langchain-ai/langsmith-cookbook/blob/main/testing-examples/ragas/ragas.ipynb](https://github.com/langchain-ai/langsmith-cookbook/blob/ma…
-
[This](https://stackoverflow.com/a/14698033/5783745) shows how to generate a factory for an existing model, for example;
```sh
rails g factory_bot:model Car name speed:integer
```
It would be …
-
I tried to use factory-bot like this:
```
import factory from 'factory-bot';
factory.define('User', User, {
name: factory.chance('name'),
email: factory.chance('email')
});
```
B…
-
Due to https://github.com/thoughtbot/factory_bot/blob/b223c275191985f776ff294825660fce98b3c0cc/lib/factory_bot/evaluator.rb#L10
methods like `singleton_method_added` (coming from BasicObject) are und…
-
Description:
In case when developer defines a factory in a separate file (one file equal to one factory)
the file name of such a factory should be one of these:
1. Pluralize the model name …