Commit b93304a1 authored by Alex Kalderimis's avatar Alex Kalderimis

Update epic_tree_sorting_spec to use ItemContext#relative_siblings

parent 56e0ef42
...@@ -14,7 +14,7 @@ RSpec.describe EpicTreeSorting do ...@@ -14,7 +14,7 @@ RSpec.describe EpicTreeSorting do
describe '#relative_siblings' do describe '#relative_siblings' do
def siblings(obj) def siblings(obj)
obj.send(:relative_siblings).pluck(:id, :object_type) RelativePositioning.mover.context(obj).relative_siblings.pluck(:id, :object_type)
end end
def polymorphic_ident(obj) def polymorphic_ident(obj)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment