Sha256: 977a21dcce8f63f00e9e20f88129f9625a801501ff5d90e70352bdfea178d274

Contents?: true

Size: 447 Bytes

Versions: 17

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

module Shared
  module Quoting

    def setup
      3.times { |counter| QuotedList.create! order: counter }
    end

    def test_create
      assert_equal QuotedList.in_list.size, 3
    end

    # This test execute raw queries involving table name
    def test_moving
      item = QuotedList.first
      item.higher_items
      item.lower_items
      item.send :bottom_item # Part of private api
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
acts_as_list-1.2.1 test/shared_quoting.rb
acts_as_list-1.2.0 test/shared_quoting.rb
acts_as_list-1.1.0 test/shared_quoting.rb
acts_as_list-1.0.4 test/shared_quoting.rb
acts_as_list-1.0.3 test/shared_quoting.rb
acts_as_list-1.0.2 test/shared_quoting.rb
acts_as_list-1.0.1 test/shared_quoting.rb
acts_as_list-1.0.0 test/shared_quoting.rb
acts_as_list-0.9.19 test/shared_quoting.rb
acts_as_list-0.9.18 test/shared_quoting.rb
acts_as_list-0.9.17 test/shared_quoting.rb
acts_as_list-0.9.16 test/shared_quoting.rb
acts_as_list-0.9.15 test/shared_quoting.rb
acts_as_list-0.9.14 test/shared_quoting.rb
acts_as_list-0.9.13 test/shared_quoting.rb
acts_as_list-0.9.12 test/shared_quoting.rb
acts_as_list-0.9.11 test/shared_quoting.rb