From 0758cef600329d361eb1dd8582de276c89f05b07 Mon Sep 17 00:00:00 2001 From: "jorg.vr" Date: Wed, 8 Jan 2025 15:52:43 +0100 Subject: [PATCH] Fully fix test --- test/controllers/courses_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controllers/courses_controller_test.rb b/test/controllers/courses_controller_test.rb index e59facfcc2..f62669b2ec 100644 --- a/test/controllers/courses_controller_test.rb +++ b/test/controllers/courses_controller_test.rb @@ -763,7 +763,7 @@ def with_users_signed_in(users) new_course = build :course post courses_url, params: { course: { name: new_course.name, description: new_course.description, visibility: new_course.visibility, registration: new_course.registration, teacher: new_course.teacher }, copy_options: { base_id: course.id }, format: :json } - assert_equal 0, Course.find(response.parsed_body['id']).series.count + assert_equal 2, Course.find(response.parsed_body['id']).series.count end test 'a copied course should contain all series with the same advanced settings' do