I guess would be better to make two tests(*should_allow* and *should_disallow*) and to mock the environment to return true or false for this property.
That way we know both cases will work