-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
70 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
spec/libraries/resource_microsoft_remote_desktop_app_spec.rb
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
spec/resources/microsoft_remote_desktop_app/mac_os_x/10_10_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require_relative '../../../spec_helper' | ||
|
||
describe 'resource_microsoft_remote_desktop_app::mac_os_x::10_10' do | ||
let(:action) { nil } | ||
let(:runner) do | ||
ChefSpec::SoloRunner.new(step_into: 'microsoft_remote_desktop_app', | ||
platform: 'mac_os_x', | ||
version: '10.10') | ||
end | ||
let(:chef_run) do | ||
runner.converge("microsoft_remote_desktop_app_test::#{action}") | ||
end | ||
|
||
context 'the default action (:install)' do | ||
let(:action) { :default } | ||
|
||
it 'configures the Mac App Store' do | ||
expect(chef_run).to include_recipe 'mac-app-store' | ||
end | ||
|
||
it 'installs the Microsoft Remote Desktop app' do | ||
expect(chef_run).to install_microsoft_remote_desktop_app('default') | ||
end | ||
|
||
it 'installs via the App Store' do | ||
expect(chef_run).to install_mac_app_store_app('Microsoft Remote Desktop') | ||
.with(bundle_id: 'com.microsoft.rdc.mac') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
spec/support/cookbooks/microsoft_remote_desktop_app_test/metadata.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Encoding: UTF-8 | ||
# | ||
# rubocop:disable SingleSpaceBeforeFirstArg | ||
name 'microsoft_remote_desktop_app_test' | ||
maintainer 'Jonathan Hartman' | ||
maintainer_email 'j@p4nt5.com' | ||
license 'apache2' | ||
description 'microsoft_remote_desktop_app resource test wrapper' | ||
long_description 'microsoft_remote_desktop_app resource test wrapper' | ||
version '0.0.1' | ||
|
||
depends 'microsoft-remote-desktop' | ||
|
||
supports 'mac_os_x' | ||
# rubocop:enable SingleSpaceBeforeFirstArg |
3 changes: 3 additions & 0 deletions
3
spec/support/cookbooks/microsoft_remote_desktop_app_test/recipes/default.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Encoding: UTF-8 | ||
|
||
microsoft_remote_desktop_app 'default' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.