Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: Add example of dependent factory #239

Merged
merged 1 commit into from
Apr 13, 2018
Merged

README: Add example of dependent factory #239

merged 1 commit into from
Apr 13, 2018

Conversation

nathanl
Copy link
Contributor

@nathanl nathanl commented Aug 21, 2017

This may seem obvious, but it took me a few minutes to figure out and I thought it would be nice to show.

Copy link
Contributor

@paulcsmith paulcsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a great addition! Just a couple comments. Thanks for suggesting this 👍

README.md Outdated
@@ -104,6 +104,14 @@ defmodule MyApp.Factory do
}
end

# dependent factory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think # Modify existing factories might be more clear here. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe derived factories? That's something I searched for first.

README.md Outdated
%MyApp.Article{
article_factory |
featured: true,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this syntax is a bit nicer. What do you think? struct!(article_factory, %{featured: true})

@nathanl
Copy link
Contributor Author

nathanl commented Nov 27, 2017

Rebased on master.

@nathanl nathanl changed the title Add example of dependent factory README: Add example of dependent factory Nov 28, 2017
@germsvel
Copy link
Collaborator

Thanks @nathanl! This is definitely a point of confusion.

@germsvel germsvel merged commit 3c4ada6 into beam-community:master Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants