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

## Describe the bug When using the dependent attribute feature of factories there is an unforeseen result. If the method that is being defined is created as a part of...

bug
help wanted

## Describe the bug I am using rom-rb with rom-sql and rom-factory. In short, a struct creation via factory (`Factory.structs[:foo]`) is not using default type value unless schema also has...

bug
help wanted

## Describe the bug Whenever I have an attribute which depends on another one, overriding the dependency (i.e. with a trait) doesn't affect the calculated attribute. Seems similar to #63,...

bug
help wanted

Testing features such as pagination requires presence of a number of objects in the repository. Creation of these entities takes more time, since each faked object is created separately. Yet...

## Describe the bug Overriding attributes is causing factory field resolver to receive `nil` instead of overwritten value. ## To Reproduce create file `app_spec.rb` with: ```ruby require 'rom' require 'rom-factory'...

bug
help wanted

This factory won't work. ```ruby Factory.define(:announcement) do |f| f.when { 10.hours.since..12.hours.since } # time range f.start_time { |when| when.begin.strftime('%H:%M') } f.end_time { |when| when.end.strftime('%H:%M') } end ``` `syntax error, unexpected...

feature
help wanted

Hi all! It seems that when we have a cascade has_many or has_one with 3 or more factories some records are not created properly. **In the example below, when I...

bug
help wanted

Noticed that when using a relation as dependency in creating an attribute the relation always comes in nil, any way I can achieve this? I have tables that have some...

I have a unique problem where my Repo/Entity is called indie as in an Indie artist. The `infer_factory_name(name)` method https://github.com/rom-rb/rom-factory/blob/v0.6.0/lib/rom/factory/factories.rb#L203 tries looking for the Indy factory which does not exist.

bug