mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
bugfix: file common for linked_to? tests
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
f472e8a5c0
commit
a9c129540b
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ class Vulcano::Plugins::Backend
|
||||||
# interface methods: these fields should be implemented by every
|
# interface methods: these fields should be implemented by every
|
||||||
# backend File
|
# backend File
|
||||||
%w{
|
%w{
|
||||||
exist? mode owner group link_target content mtime size
|
exist? mode owner group link_target link_path content mtime size
|
||||||
selinux_label product_version file_version path
|
selinux_label product_version file_version path
|
||||||
}.each do |m|
|
}.each do |m|
|
||||||
define_method m.to_sym do
|
define_method m.to_sym do
|
||||||
|
@ -79,7 +79,7 @@ class Vulcano::Plugins::Backend
|
||||||
end
|
end
|
||||||
|
|
||||||
def linked_to?(dst)
|
def linked_to?(dst)
|
||||||
link_target == dst
|
link_path == dst
|
||||||
end
|
end
|
||||||
|
|
||||||
def version?(version)
|
def version?(version)
|
||||||
|
|
Loading…
Reference in a new issue