specinfra 2.33.0 → 2.33.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfdda15e9c52311a0d5e24589dcc58b65f3be07b
|
4
|
+
data.tar.gz: 463ca1d7e2baa498d1be6f4f8619ffc12ee1dc5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eb5310383f8844abbae06634adad3d8d086ba6c50bb41dcca1dd79096bc2e986ba5e23b60c49e63d60b68aa2abd809cbde649238ebcb679a6abdad6057faf14
|
7
|
+
data.tar.gz: af72cbc235163f369693d96f679bb2766df79c44bc651832009a1e0ceba607e75ec1598adead0c8e45713ef993fa0775e685387800c610c39476e3681c5f3c98
|
@@ -16,10 +16,6 @@ class Specinfra::Command::Darwin::Base::File < Specinfra::Command::Base::File
|
|
16
16
|
"stat -f %Y #{escape(link)} | grep -- #{escape(target)}"
|
17
17
|
end
|
18
18
|
|
19
|
-
def get_link_target(link)
|
20
|
-
"readlink #{escape(link)}"
|
21
|
-
end
|
22
|
-
|
23
19
|
def check_has_mode(file, mode)
|
24
20
|
regexp = "^#{mode}$"
|
25
21
|
"stat -f%Lp #{escape(file)} | grep -- #{escape(regexp)}"
|
data/lib/specinfra/version.rb
CHANGED
@@ -63,7 +63,7 @@ describe get_command(:check_file_is_pipe, '/tmp') do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
describe get_command(:get_file_link_target, '/tmp') do
|
66
|
-
it { should eq 'readlink
|
66
|
+
it { should eq 'readlink /tmp' }
|
67
67
|
end
|
68
68
|
|
69
69
|
describe get_command(:check_file_exists, '/tmp') do
|