Sha256: 6039f0ac3dafa2e9438e0a86f1879b0a6192be5b0ca11e555f378dd3d4b64083
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
require 'test_helper' class SimpleItemTest < ActiveSupport::TestCase def setup 4.times { SimpleItem.create } @items = SimpleItem.find(:all, :order => 'id') @ids = @items.map(&:id) end include SimpleTests include SimpleGaplessTests protected def ordered_ids SimpleItem.find(:all, :order => 'position', :conditions => 'position IS NOT NULL').map(&:id) end def create(*args) SimpleItem.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/simple_item_test.rb |
aguids-positionable-0.2.2 | test/rails_root/test/unit/simple_item_test.rb |