Fix old_opt_record.blank? check for Migrator#unlink_oldname_opt
- This was determinig `blank?` on a `Pathname` object, which returned `true` always, making the test fail. Instead, check the string value.
This commit is contained in:
parent
da734a30c2
commit
abbb0fbd76
@ -360,7 +360,7 @@ class Migrator
|
|||||||
|
|
||||||
# Remove `opt/oldname` link if it belongs to newname.
|
# Remove `opt/oldname` link if it belongs to newname.
|
||||||
def unlink_oldname_opt
|
def unlink_oldname_opt
|
||||||
return if old_opt_record.blank?
|
return if old_opt_record.to_s.blank?
|
||||||
return unless old_opt_record.symlink?
|
return unless old_opt_record.symlink?
|
||||||
return unless old_opt_record.exist?
|
return unless old_opt_record.exist?
|
||||||
return unless new_linked_keg_record.exist?
|
return unless new_linked_keg_record.exist?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user