rom-factory icon indicating copy to clipboard operation
rom-factory copied to clipboard

Data generator with support for persistence backends

Results 17 rom-factory issues
Sort by recently updated
recently updated
newest added

This test will fail. Overriding `has_many` association does not work. ```ruby context 'has_many' do before do factories.define(:user) do |f| # ... f.association(:tasks, count: 2) end factories.define(:task) do |f| f.sequence(:title) {...

bug

Here is what I am trying to build: ```ruby Factory[:shift, shift_positions: [ Factory[:shift_position], Factory[:shift_position] ] ] ``` My factory definitions are: ``` Factory.define :shift do |f| f.association(:shift_positions, count: 2) end...

I recently managed to create a join table for image attachments on news items in which I failed to define a primary key like the below: `primary_key [:news_item_id, :asset_id]` The...

help wanted

## Describe the bug It is not possible to overwrite an association with nil. ```ruby class Units < ROM::Relation[:sql] schema(:units, infer: true) do associations do has_many :users end end end...

bug
help wanted

## Describe the bug At the moment it's not possible to use [unique-feature](https://github.com/faker-ruby/faker#ensuring-unique-values) of faker. ## To Reproduce ```ruby Factory.define(:company) do |f| f.id { fake(:alphanumeric, :unique, :alpha, number: 3).upcase }...

bug
help wanted

## Describe the bug IDs are not created for associations in v0.12 as they were in v0.11 ## To Reproduce with Factories: ```ruby Factory.define(:operator) do |f| f.id { SecureRandom.uuid }...

bug
help wanted

Traits can currently be specified as the second argument when calling `association`: ```ruby Factory.define :category do |category| category.association :image, :fancy end ``` This change will add support for specifying `traits:`...