Skip to content

Commit

Permalink
Fully fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jan 8, 2025
1 parent 71f0017 commit 0758cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllers/courses_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0758cef

Please sign in to comment.