Skip to content

Commit

Permalink
Merge pull request #115 from opscode/adamedx/spec-reword
Browse files Browse the repository at this point in the history
Fix incorrect test description, other test wording
  • Loading branch information
Adam Edwards authored and adamedx committed Oct 21, 2014
1 parent 83e022f commit f01e752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/knife/winrm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
exit_code = @winrm.run
end

it "should have winrm monkey patched for windows" do
it "should use the winrm monkey patch for windows" do
@winrm.config[:winrm_user] = "domain\\testuser"
allow(Chef::Platform).to receive(:windows?).and_return(true)
expect(@winrm).to receive(:require).with('winrm-s')
Expand All @@ -186,7 +186,7 @@
end

context "when domain name not given" do
it "should skip winrm monkey patched for windows" do
it "should skip winrm monkey patch for windows" do
@winrm.config[:winrm_user] = "testuser"
allow(Chef::Platform).to receive(:windows?).and_return(true)
expect(@winrm).to_not receive(:require).with('winrm-s')
Expand All @@ -196,7 +196,7 @@
end

context "when local domain name given" do
it "should skip winrm monkey patched for windows" do
it "should use the winrm monkey patch for windows" do
@winrm.config[:winrm_user] = ".\\testuser"
allow(Chef::Platform).to receive(:windows?).and_return(true)
expect(@winrm).to receive(:require).with('winrm-s')
Expand Down

0 comments on commit f01e752

Please sign in to comment.