Merge pull request #2550 from TracksApp/fix_context_change_test

#2484: Fix test changing contexts. Why choose at random and occasiona…
This commit is contained in:
Jyri-Petteri Paloposki 2021-01-05 08:30:12 +02:00 committed by GitHub
commit fc264cf750
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -455,8 +455,8 @@ class TodosControllerTest < ActionController::TestCase
# called by dragging a todo to another context container
login_as(:admin_user)
todo = users(:admin_user).todos.active.first
context = users(:admin_user).contexts.first
todo = Todo.find(1)
context = Context.find(2)
refute_equal todo.context.id, context.id