summaryrefslogtreecommitdiff
path: root/spec/unit/provider/subversion_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:29:13 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:29:13 -0700
commit878560a22f37aec0c2dfe681b3743e027155be88 (patch)
tree676062be70a45e73a8722c0e6dadd220162fb101 /spec/unit/provider/subversion_spec.rb
parent202887162a22e0c7062064fff0d9462f8c02bf0e (diff)
downloadchef-878560a22f37aec0c2dfe681b3743e027155be88.tar.gz
fix Layout/DotPosition
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/provider/subversion_spec.rb')
-rw-r--r--spec/unit/provider/subversion_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/provider/subversion_spec.rb b/spec/unit/provider/subversion_spec.rb
index 8f364aa8c8..5233ecb229 100644
--- a/spec/unit/provider/subversion_spec.rb
+++ b/spec/unit/provider/subversion_spec.rb
@@ -74,8 +74,8 @@ describe Chef::Provider::Subversion do
"Last Changed Date: 2009-03-25 06:09:56 -0600 (Wed, 25 Mar 2009)\n\n"
expect(::File).to receive(:exist?).at_least(1).times.with("/my/deploy/dir/.svn").and_return(true)
expected_command = ["svn info", { cwd: "/my/deploy/dir", returns: [0, 1] }]
- expect(@provider).to receive(:shell_out!).with(*expected_command).
- and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
+ expect(@provider).to receive(:shell_out!).with(*expected_command)
+ .and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
expect(@provider.find_current_revision).to eql("11410")
end
@@ -83,8 +83,8 @@ describe Chef::Provider::Subversion do
example_svn_info = "svn: '/tmp/deploydir' is not a working copy\n"
expect(::File).to receive(:exist?).with("/my/deploy/dir/.svn").and_return(true)
expected_command = ["svn info", { cwd: "/my/deploy/dir", returns: [0, 1] }]
- expect(@provider).to receive(:shell_out!).with(*expected_command).
- and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
+ expect(@provider).to receive(:shell_out!).with(*expected_command)
+ .and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
expect(@provider.find_current_revision).to be_nil
end
@@ -129,8 +129,8 @@ describe Chef::Provider::Subversion do
"Last Changed Date: 2009-03-25 06:09:56 -0600 (Wed, 25 Mar 2009)\n\n"
@resource.revision "HEAD"
expected_command = ["svn info http://svn.example.org/trunk/ --no-auth-cache -rHEAD", { cwd: "/my/deploy/dir", returns: [0, 1] }]
- expect(@provider).to receive(:shell_out!).with(*expected_command).
- and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
+ expect(@provider).to receive(:shell_out!).with(*expected_command)
+ .and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
expect(@provider.revision_int).to eql("11410")
end
@@ -138,8 +138,8 @@ describe Chef::Provider::Subversion do
example_svn_info = "some random text from an error message\n"
@resource.revision "HEAD"
expected_command = ["svn info http://svn.example.org/trunk/ --no-auth-cache -rHEAD", { cwd: "/my/deploy/dir", returns: [0, 1] }]
- expect(@provider).to receive(:shell_out!).with(*expected_command).
- and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
+ expect(@provider).to receive(:shell_out!).with(*expected_command)
+ .and_return(double("ShellOut result", stdout: example_svn_info, stderr: ""))
expect { @provider.revision_int }.to raise_error(RuntimeError, "Could not parse `svn info` data: some random text from an error message\n")
end