same for `have_resource` matcher.