Update usage of RubyTree to avoid deprecated methods

This commit is contained in:
Sebastian Serth
2022-06-27 12:04:11 +02:00
parent 3b29c7e521
commit d3f283c4e7
2 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ describe FileTree do
end
it 'creates tree nodes for intermediary path segments' do
expect(file_tree.instance_variable_get(:@root).reject(&:content).reject(&:is_root?).map(&:name)).to eq(files.first.path.split('/'))
expect(file_tree.instance_variable_get(:@root).reject(&:content).reject(&:root?).map(&:name)).to eq(files.first.path.split('/'))
end
end