Skip to content

Commit

Permalink
Fix version parameter specification in spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpogran committed Mar 24, 2017
1 parent 4458604 commit b90bb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/puppet/provider/package/chocolatey_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b90bb4f

Please sign in to comment.