Skip to content

Commit

Permalink
Updated test to use correct package name for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
kizzie committed Oct 15, 2017
1 parent 5911eb3 commit 1daba1f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions spec/classes/nodejs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -998,24 +998,22 @@
end

context 'with the darwin_package_provider left as default' do

it 'should use Macports as the default provider' do
is_expected.to contain_package('node').with('provider' => 'macports')
it 'uses Macports as the default provider' do
is_expected.to contain_package('nodejs').with('provider' => 'macports')
end
end

context 'with the darwin_package_provider set to homebrew' do
context 'with the darwin_package_provider set to homebrew' do
let :params do
{
darwin_package_provider: 'homebrew'
}
end

it 'should use homebrew as the default provider' do
is_expected.to contain_package('node').with('provider' => 'homebrew')
it 'uses homebrew as the default provider' do
is_expected.to contain_package('nodejs').with('provider' => 'homebrew')
end
end

end

context 'when running on Windows' do
Expand Down

0 comments on commit 1daba1f

Please sign in to comment.