Skip to content

Instantly share code, notes, and snippets.

@FCO
Last active December 11, 2022 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FCO/3d286f75af4128f1233d5ca6235d81e8 to your computer and use it in GitHub Desktop.
Save FCO/3d286f75af4128f1233d5ca6235d81e8 to your computer and use it in GitHub Desktop.
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