Last active
February 25, 2016 21:33
-
-
Save bcardarella/0c3b07149bb70fee70d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mode User | |
@repo Repo | |
:admin1 from(:users).brian do | |
admin true | |
end | |
@repo OtherRepo | |
:admin2 do | |
name "Admin" | |
age 25 | |
admin true | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model Pet | |
@repo Repo | |
:boomer do | |
name "Boomer" | |
age 3 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
brian: fixtures(:users).brian | |
} | |
|> Map.merge(fixtures(:admins)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model User | |
@repo Repo | |
:brian do | |
name "Brian" | |
age 36 | |
end | |
:stephanie do | |
name "Stephanie | |
age 35 | |
pets [fixture(:pets).boomer) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment