3 class JobTaskTest < ActiveSupport::TestCase
4 test "new tasks get an assigned qsequence" do
5 set_user_from_auth :active
7 assert_not_nil task.qsequence
8 assert_operator(task.qsequence, :>=, 0)
11 test "assigned qsequence is not overwritten" do
12 set_user_from_auth :active
13 task = JobTask.create!(qsequence: 99)
14 assert_equal(99, task.qsequence)