user "#{node['user']['username']}" do home "#{node['users']['home_dir']}" supports :manage_home => true action :create end require 'spec_helper' describe user("foo") do it { should exist } it { should have_home_directory "/home/foo" } end describe file("/home/foo") do it { should be_directory } it { should be_owned_by "foo" } it { should be_grouped_into "foo" } end Serverspecだと例のように直接ユーザ名とホームディレクト