factory_bot icon indicating copy to clipboard operation
factory_bot copied to clipboard

A library for setting up Ruby objects as test data.

Results 135 factory_bot issues
Sort by recently updated
recently updated
newest added

### Description :wave: Hello, I'm seeing the following warnings in my test suite when using Factory Bot: ``` /factory_bot-6.4.6/lib/factory_bot/attribute_assigner.rb:16: warning: The class User reached 8 shape variations, instance variables accesses...

bug

## Allow the initial value of a sequence to be evaluated on first use In order to be able to use factory_bot to generate seeds for a database where the...

### Problem this feature will solve I need to implement a factory call stack that can be displayed in the error message that is raised from factory's `after` callback. Factories...

feature

https://github.com/rubygems/rubygems/releases/tag/bundler-v2.5.22

https://github.com/rubygems/rubygems/releases/tag/bundler-v2.5.21

### Description When i make a trait B that implies A and build with B and A traits the after(:build) in A runs twice ### Reproduction Steps ```ruby require "bundler/inline"...

bug
with reproduction steps

Fixes: #1694 Fixes: #1649 Context is provided as a block parameter in callbacks. This pull requests adds some helper methods to `context`, making it easier to detect the strategy used...

### Problem this feature will solve Using Turbo in in Rails 7+, we're commonly broadcasting updates using the `[Broadcastable](https://github.com/hotwired/turbo-rails/blob/main/app/models/concerns/turbo/broadcastable.rb)` functionality. In most of our unit tests, those broadcasts are not...

feature

### Problem this feature will solve I'd like to safely bypass the creation of a factory when no overrides or traits were specified. Ultimately, the idea is to reduce the...

feature

Bumps [yard](https://github.com/lsegal/yard) from 0.9.36 to 0.9.37. Release notes Sourced from yard's releases. Release v0.9.37 Fix JavaScript errors in --one-file template (#1426) Fix heredoc parsing and add support for squiggly heredocs...

dependencies
ruby