3ofcoins/chef-cookbook-hostname — pull request #11 by mattjalexander (2013-10-01 18:53:31+00:00)
Title: Reload hostname if any part of the FQDN changes

The current test of node['hostname'] != hostname will fail to reset the hostname (but populate /etc/hosts with the new name) if the hostname stays the same but the domain changes.

This changes that test to capture that scenario and updates tests accordingly.