Fix failing spec for Chef 11.0 and 11.2

Chef::Resource.resource_classes doesn't exist in those versions of Chef.
The library code correctly guarded for that case, but the spec testing
that functionality did not.