Skip to content

Instantly share code, notes, and snippets.

@inokappa
Created June 12, 2013 13:53
Show Gist options
  • Select an option

  • Save inokappa/5765464 to your computer and use it in GitHub Desktop.

Select an option

Save inokappa/5765464 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe file('/etc/hosts') do
it { should contain "#{attr[:ip]} #{attr[:host_name]}.example.com #{attr[:host_name]}" }
end
describe file('/etc/hostname') do
it { should contain "#{attr[:host_name]}.example.com" }
end
describe file('/etc/mailname') do
it { should contain "#{attr[:host_name]}.example.com" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment