assertEquals(statementList.get(1).render(OsFamily.UNIX), expected.render(OsFamily.UNIX));
}
public void testCreateRolesIfNecessaryWithOneRoleAndCustomPath() {
ImmutableList.Builder<Statement> statements = ImmutableList.builder();
RunList runlist = RunList.builder().recipe("bar").build();
Role role = Role.builder().name("foo").runlist(runlist).build();
ChefSolo solo = ChefSolo.builder().rolePath("/tmp/roles").defineRole(role).build();
solo.createRolesIfNecessary(statements);
ImmutableList<Statement> statementList = statements.build();