File: shared_quoting.rb

package info (click to toggle)
ruby-acts-as-list 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 388 kB
  • sloc: ruby: 2,493; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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