spec/chef/support/shared_examples/git_data_dirs.rb (5 lines of code) (raw):

RSpec.shared_examples 'git data directory' do |git_data_path| it 'creates the repositories directory' do expect(chef_run).to create_storage_directory(git_data_path).with(owner: 'git', group: 'git', mode: '2770') end end