use Chef::Resource#declared_type first if available (Chef >= 12), otherwise fall back to Chef::Resource#resource_name (Chef <= 11)
use Chef::Resource#declared_type first if available (Chef >= 12), otherwise fall back to Chef::Resource#resource_name (Chef <= 11)

chefspec/chefspec,oldirty/chefspec,lamont-granquist/chefspec,Thalagyrt/chefspec,oldirty/chefspec,jkeiser/chefspec,h4ck3rm1k3/chefspec,shanethehat/chefspec,ranjib/chefspec,mcoolive/chefspec,mcoolive/chefspec,rsr5/chefspec,sethvargo/chefspec,gsavage/chefspec,ranjib/chefspec,375gnu/chefspec,bheuvel/chefspec,jtimberman/chefspec,chefspec/chefspec,jkeiser/chefspec,rsr5/chefspec,375gnu/chefspec,bheuvel/chefspec,aspiers/chefspec,gsavage/chefspec,shanethehat/chefspec,h4ck3rm1k3/chefspec,aspiers/chefspec,lamont-granquist/chefspec,jtimberman/chefspec,Thalagyrt/chefspec,sethvargo/chefspec