Last active
December 11, 2022 15:06
-
-
Save FCO/3d286f75af4128f1233d5ca6235d81e8 to your computer and use it in GitHub Desktop.
This file contains 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
use Test; | |
use Factories; # your factories module | |
use Child::Helper; # imports &children-on-country | |
factory-run { | |
is children-on-country("UK"), 0; | |
.create: "child", :country<UK>; | |
is children-on-country("UK"), 1; | |
.create: 9, "child", :country<UK>; | |
is children-on-country("UK"), 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment