lib/sprinkle/verifiers/symlink.rb in sprinkle-0.4.2 vs lib/sprinkle/verifiers/symlink.rb in sprinkle-0.5.0.rc1

- old
+ new

@@ -18,12 +18,12 @@ # Checks that <tt>symlink</tt> is a symbolic link. If <tt>file</tt> is # given, it checks that <tt>symlink</tt> points to <tt>file</tt> def has_symlink(symlink, file = nil) if file.nil? - @commands << "test -L #{symlink}" + test "-L #{symlink}" else - @commands << "test '#{file}' = `readlink #{symlink}`" + test "'#{file}' = `readlink #{symlink}`" end end end end end \ No newline at end of file