bugfix: file common for linked_to? tests

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-22 19:33:12 +02:00
parent f472e8a5c0
commit a9c129540b

View file

@ -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)