July 2017
Intermediate to advanced
284 pages
6h 45m
English
Now, you can create new users or admins. Just use your Forge module and the macros that Blacksmith creates for you, like this:
| | ~~~ |
| | user = Forge.user |
| | ~~~ |
Or, you can create a list of five users, like this:
| | ~~~ |
| | users = Forge.user_list 5 |
| | ~~~ |
You can override any of the registered attributes, like this:
| | ~~~ |
| | user = Forge.user first_name: "Will", last_name: "Override" |
| | ~~~ |
Simple and powerful. Now, your tests can quickly create new entities with many elements, with the ability to override or create new attributes as needed.
Read now
Unlock full access