diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-12-15 15:46:29 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-12-15 15:46:29 -0800 |
commit | b4abc3f24f8ccb7b3d137afc00369a10a736261d (patch) | |
tree | d605e6640cf03e66f4ae57a7bb7f612b3f6acc40 /spec | |
parent | 2df28c2845fe18cf0186e43079beac6475c927a7 (diff) | |
parent | 7b26c360c4b8ad5206bcdf44e7a63fdf9b12df3a (diff) | |
download | chef-b4abc3f24f8ccb7b3d137afc00369a10a736261d.tar.gz |
Merge pull request #2634 from BackSlasher/repair-subversion-command
Subversion failes with "option ':command' is not a valid option for Mixlib::ShellOut"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/subversion_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/provider/subversion_spec.rb b/spec/unit/provider/subversion_spec.rb index b372f0df7a..9ca11b8d82 100644 --- a/spec/unit/provider/subversion_spec.rb +++ b/spec/unit/provider/subversion_spec.rb @@ -198,7 +198,7 @@ describe Chef::Provider::Subversion do it "runs an export with the --force option" do allow(::File).to receive(:directory?).with("/my/deploy").and_return(true) expected_cmd = "svn export --force -q -r12345 http://svn.example.org/trunk/ /my/deploy/dir" - expect(@provider).to receive(:shell_out!).with(command: expected_cmd) + expect(@provider).to receive(:shell_out!).with(expected_cmd, {}) @provider.run_action(:force_export) expect(@resource).to be_updated end @@ -206,7 +206,7 @@ describe Chef::Provider::Subversion do it "runs the checkout command for action_checkout" do allow(::File).to receive(:directory?).with("/my/deploy").and_return(true) expected_cmd = "svn checkout -q -r12345 http://svn.example.org/trunk/ /my/deploy/dir" - expect(@provider).to receive(:shell_out!).with(command: expected_cmd) + expect(@provider).to receive(:shell_out!).with(expected_cmd, {}) @provider.run_action(:checkout) expect(@resource).to be_updated end @@ -230,7 +230,7 @@ describe Chef::Provider::Subversion do @resource.user "whois" @resource.group "thisis" expected_cmd = "svn checkout -q -r12345 http://svn.example.org/trunk/ /my/deploy/dir" - expect(@provider).to receive(:shell_out!).with(command: expected_cmd, user: "whois", group: "thisis") + expect(@provider).to receive(:shell_out!).with(expected_cmd, {user: "whois", group: "thisis"}) @provider.run_action(:checkout) expect(@resource).to be_updated end @@ -255,7 +255,7 @@ describe Chef::Provider::Subversion do allow(@provider).to receive(:find_current_revision).and_return("11410") allow(@provider).to receive(:current_revision_matches_target_revision?).and_return(false) expected_cmd = "svn update -q -r12345 /my/deploy/dir" - expect(@provider).to receive(:shell_out!).with(command: expected_cmd) + expect(@provider).to receive(:shell_out!).with(expected_cmd, {}) @provider.run_action(:sync) expect(@resource).to be_updated end @@ -272,7 +272,7 @@ describe Chef::Provider::Subversion do it "runs the export_command on action_export" do allow(::File).to receive(:directory?).with("/my/deploy").and_return(true) expected_cmd = "svn export --force -q -r12345 http://svn.example.org/trunk/ /my/deploy/dir" - expect(@provider).to receive(:shell_out!).with(command: expected_cmd) + expect(@provider).to receive(:shell_out!).with(expected_cmd, {}) @provider.run_action(:export) expect(@resource).to be_updated end |