Skip to content

Named definition that accepts :class param? #4

@iawgens

Description

@iawgens

Any plan to add ability to name the definition that are different than the model it would create, like in Factory Girl.

Something like:
Dupe.define :fancy_recipe, :class => Recipe do |t|
t.name "Fancy Recipe"
end

I think the usage of this is so one can create a factory of a particular pattern easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions