summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-09-29 20:26:23 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-09-29 20:26:23 -0700
commita37f1944bd95a10e261070e828601304fa898eeb (patch)
tree8fa6288e7b4539dbb261c93cab5cb3952479d856
parenteeca4cf5176605a43c0fa74459811522ec82a402 (diff)
downloadchef-jdmundrawala/git-windows.tar.gz
Fixed git provider specsjdmundrawala/git-windows
-rw-r--r--spec/unit/provider/git_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/unit/provider/git_spec.rb b/spec/unit/provider/git_spec.rb
index 69a6443c67..20b13c4cb0 100644
--- a/spec/unit/provider/git_spec.rb
+++ b/spec/unit/provider/git_spec.rb
@@ -245,9 +245,10 @@ SHAS
end
it "runs a checkout command with default options" do
- expected_cmd = 'git branch -f deploy d35af14d41ae22b19da05d7d03a0bafc321b244c; git checkout deploy'
- @provider.should_receive(:shell_out!).with(expected_cmd, :cwd => "/my/deploy/dir",
- :log_tag => "git[web2.0 app]")
+ @provider.should_receive(:shell_out!).with('git branch -f deploy d35af14d41ae22b19da05d7d03a0bafc321b244c', :cwd => "/my/deploy/dir",
+ :log_tag => "git[web2.0 app]").ordered
+ @provider.should_receive(:shell_out!).with('git checkout deploy', :cwd => "/my/deploy/dir",
+ :log_tag => "git[web2.0 app]").ordered
@provider.checkout
end