Sha256: 7fe20df50428488f69041d4acfa9df10f475efe59cc5d70aae1e9780d5d65a2b

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

module SimpleGapTests
  # Insert and Remove Tests
  def test_simple_gap_items_should_have_gaps
    assert_equal @ids, ordered_ids
    1.upto(3) do |index|
      assert @items[index].in_list?
      assert_not_equal @items[index-1].list_position + 1, @items[index].list_position
    end
  end
  
  # TODO: test move_up move_down with gaps
  # => Should move clear gaps?
  
  # TODO: test insert_at and gaps
  # => Should it take the place of the gap?
  # => or should it shift lower items despite the gap
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aguids-positionable-0.2.1 test/rails_root/test/simple_gap_tests.rb
aguids-positionable-0.2.2 test/rails_root/test/simple_gap_tests.rb