Commit bc9c20a1 authored by Alex Kalderimis's avatar Alex Kalderimis

Fix spec failures

We want the `new_item` to be a new, unplaced item.

We have made `move_sequence` a private method, so we need to call it
using send.
parent b58a449c
...@@ -108,7 +108,7 @@ RSpec.describe EpicTreeSorting do ...@@ -108,7 +108,7 @@ RSpec.describe EpicTreeSorting do
def move_sequence(range) def move_sequence(range)
dx = 500 dx = 500
RelativePositioning.mover.context(item).move_sequence(range.first, range.last, dx) RelativePositioning.mover.context(item).send(:move_sequence, range.first, range.last, dx)
end end
context 'when self is an epic' do context 'when self is an epic' do
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
RSpec.shared_examples 'a class that supports relative positioning' do RSpec.shared_examples 'a class that supports relative positioning' do
let(:item1) { create_item } let(:item1) { create_item }
let(:item2) { create_item } let(:item2) { create_item }
let(:new_item) { create_item } let(:new_item) { create_item(relative_position: nil) }
let(:set_size) { RelativePositioning.mover.context(item1).scoped_items.count } let(:set_size) { RelativePositioning.mover.context(item1).scoped_items.count }
......
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