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

New API #37

Open
bcardarella opened this issue Jan 13, 2016 · 0 comments · May be fixed by #53
Open

New API #37

bcardarella opened this issue Jan 13, 2016 · 0 comments · May be fixed by #53

Comments

@bcardarella
Copy link
Member

I've been bouncing the idea around in my head on a potential new API. It would look something like this:

@fixtures [:foo, :bar]
test "some test", context do
  fixtures.foo # foo's fixtures are here
  fixtures.bar # bar's fixtures are here
end

This would also allow for setting certain flag:

@fixtures :foo, virtual: true, %{ people: %{ admin: %{ name: "Thomas" } } }

In addition, when referencing other fixture files in a fixture file:

@fixtures :bar
foo model: Foo, repo:Repo do
  valid do
    bar fixtures.bar.one
  end
end
@bcardarella bcardarella linked a pull request Aug 13, 2016 that will close this issue
21 tasks
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 a pull request may close this issue.

1 participant