Sha256: e2b988ab1513725cc39236d63c0fda99ed3d55484963b4c7b065bc29dbcb5ee7

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

require 'test_helper'

class DifferentPositionColumnItemTest < ActiveSupport::TestCase
  def setup
    4.times { DifferentPositionColumnItem.create }
    @items = DifferentPositionColumnItem.find(:all, :order => 'id')
    @ids = @items.map(&:id)
  end
 
  include SimpleTests
  include SimpleGaplessTests
  
  protected
    def ordered_ids
      DifferentPositionColumnItem.find(:all, :order => 'different_position', :conditions => 'different_position IS NOT NULL').map(&:id)
    end
    
    def create(*args)
      DifferentPositionColumnItem.create
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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