diff --git a/spec/unit/puppet/provider/package/chocolatey_spec.rb b/spec/unit/puppet/provider/package/chocolatey_spec.rb index e6fa57be..dd0f32f4 100644 --- a/spec/unit/puppet/provider/package/chocolatey_spec.rb +++ b/spec/unit/puppet/provider/package/chocolatey_spec.rb @@ -97,7 +97,7 @@ it "should use upgrade command with versioned package" do resource[:ensure] = '1.2.3' - @provider.expects(:chocolatey).with('upgrade', 'chocolatey', '-version', '1.2.3', '-y', nil) + @provider.expects(:chocolatey).with('upgrade', 'chocolatey', '--version', '1.2.3', '-y', nil) @provider.install end @@ -135,7 +135,7 @@ it "should use update command with versioned package" do resource[:ensure] = '1.2.3' - @provider.expects(:chocolatey).with('update', 'chocolatey', '-version', '1.2.3', nil) + @provider.expects(:chocolatey).with('update', 'chocolatey', '--version', '1.2.3', nil) @provider.install end