require 'spec_helper'

describe 'Default recipe on MAC_OS_X: 10.9.2' do
  let(:runner) { ChefSpec::ServerRunner.new(platform: 'mac_os_x', version: '10.9.2') }

  it 'converges successfully' do
    expect { :chef_run }.to_not raise_error
  end
end

require 'spec_helper'

describe 'plist_file on macOS' do
  let(:chef_run) do
    ChefSpec::SoloRunner.new(platform: 'mac_os_x', version: '10.13',
                               step_into: ['mac_os_x_plist_file']).converge('test::plist_file')
  end

  it 'deletes the lockfile' do
    expect(chef_run).to delete_file('/Users/vagrant/Library/Preferences/us.zoom.xos.plist.lockfile')
  end

  it 'creates the plist file' do
    expect(chef_run).to create_cookbook_file('/Users/vagrant/Library/Preferences/us.zoom.xos.plist')
  end
end

Make the specs actually do something
Make the specs actually do something

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
