Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
chef
Commits
fd9e2301
Commit
fd9e2301
authored
Oct 02, 2012
by
tylercloke
Browse files
Fixed a bug in the remote_file_spec test.
parent
ac9c2b22
Changes
1
Hide whitespace changes
Inline
Side-by-side
chef/spec/unit/resource/remote_file_spec.rb
View file @
fd9e2301
...
@@ -86,9 +86,9 @@ describe Chef::Resource::RemoteFile do
...
@@ -86,9 +86,9 @@ describe Chef::Resource::RemoteFile do
describe
"when it has group, mode, owner, source, and checksum"
do
describe
"when it has group, mode, owner, source, and checksum"
do
before
do
before
do
if
Chef
::
Platform
.
windows?
if
Chef
::
Platform
.
windows?
@
cookbook_fil
e
.
path
(
"C:/temp/origin/file.txt"
)
@
resourc
e
.
path
(
"C:/temp/origin/file.txt"
)
@
cookbook_fil
e
.
rights
(
:read
,
"Everyone"
)
@
resourc
e
.
rights
(
:read
,
"Everyone"
)
@
cookbook_fil
e
.
deny_rights
(
:full_control
,
"Clumsy_Sam"
)
@
resourc
e
.
deny_rights
(
:full_control
,
"Clumsy_Sam"
)
else
else
@resource
.
path
(
"/this/path/"
)
@resource
.
path
(
"/this/path/"
)
@resource
.
group
(
"pokemon"
)
@resource
.
group
(
"pokemon"
)
...
@@ -115,7 +115,7 @@ describe Chef::Resource::RemoteFile do
...
@@ -115,7 +115,7 @@ describe Chef::Resource::RemoteFile do
it
"returns the path as its identity"
do
it
"returns the path as its identity"
do
if
Chef
::
Platform
.
windows?
if
Chef
::
Platform
.
windows?
@
cookbook_fil
e
.
identity
.
should
==
"C:/temp/origin/file.txt"
@
resourc
e
.
identity
.
should
==
"C:/temp/origin/file.txt"
else
else
@resource
.
identity
.
should
==
"/this/path/"
@resource
.
identity
.
should
==
"/this/path/"
end
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment