diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/scm_spec.rb | 11 | ||||
-rw-r--r-- | spec/unit/resource/subversion_spec.rb | 12 |
2 files changed, 12 insertions, 11 deletions
diff --git a/spec/unit/resource/scm_spec.rb b/spec/unit/resource/scm_spec.rb index cffc956960..33c2f17498 100644 --- a/spec/unit/resource/scm_spec.rb +++ b/spec/unit/resource/scm_spec.rb @@ -80,17 +80,6 @@ describe Chef::Resource::Scm do expect(resource.svn_password).to eql("taftplz") end - it "has a svn_arguments String attribute" do - resource.svn_arguments "--more-taft plz" - expect(resource.svn_arguments).to eql("--more-taft plz") - end - - it "has a svn_info_args String attribute" do - expect(resource.svn_info_args).to be_nil - resource.svn_info_args("--no-moar-plaintext-creds yep") - expect(resource.svn_info_args).to eq("--no-moar-plaintext-creds yep") - end - it "takes the depth as an integer for shallow clones" do resource.depth 5 expect(resource.depth).to eq(5) diff --git a/spec/unit/resource/subversion_spec.rb b/spec/unit/resource/subversion_spec.rb index 2b86587f1a..dd6526e3dc 100644 --- a/spec/unit/resource/subversion_spec.rb +++ b/spec/unit/resource/subversion_spec.rb @@ -65,6 +65,18 @@ describe Chef::Resource::Subversion do expect(resource.svn_arguments).to be_nil end + it "has a svn_arguments String attribute" do + expect(resource.svn_arguments).to eq("--no-auth-cache") # the default + resource.svn_arguments "--more-taft plz" + expect(resource.svn_arguments).to eql("--more-taft plz") + end + + it "has a svn_info_args String attribute" do + expect(resource.svn_info_args).to eq("--no-auth-cache") # the default + resource.svn_info_args("--no-moar-plaintext-creds yep") + expect(resource.svn_info_args).to eq("--no-moar-plaintext-creds yep") + end + it "hides password from custom exception message" do resource.svn_password "l33th4x0rpa$$w0rd" e = resource.customize_exception(Chef::Exceptions::Exec.new "Exception with password #{resource.svn_password}") |