platform_family --> node['platform_family'] (more correct, especially when using fauxhai to mock out tests)
Add an rspec test for a demonstration.
Chef::Application.fatal! isn't available within a chefspec namespace, so bail out in a different way.