diff --git a/spec/models/articles_courses_spec.rb b/spec/models/articles_courses_spec.rb index 5f914c4258..02619ecb38 100644 --- a/spec/models/articles_courses_spec.rb +++ b/spec/models/articles_courses_spec.rb @@ -228,9 +228,6 @@ described_class.update_from_course_revisions(course, array_revisions) expect(described_class.count).to eq(2) expect(described_class.first.first_revision).to eq('2024-07-06 20:05:10') - # 62 days from course start up to course end x 2 articles courses - expect(described_class.first.article_course_timeslices.count).to eq(62) - expect(described_class.second.article_course_timeslices.count).to eq(62) end end end diff --git a/spec/services/update_course_wiki_timeslices_spec.rb b/spec/services/update_course_wiki_timeslices_spec.rb index 2513bbfff9..3611da32bd 100644 --- a/spec/services/update_course_wiki_timeslices_spec.rb +++ b/spec/services/update_course_wiki_timeslices_spec.rb @@ -51,10 +51,9 @@ article_course = ArticlesCourses.find_by(article_id: article.id) # Article course timeslice record was created for mw_page_id 6901525 - # timeslices from 2018-11-24 to 2018-11-30 were created - expect(article_course.article_course_timeslices.count).to eq(7) + # timeslices for 2018-11-24 was created + expect(article_course.article_course_timeslices.count).to eq(1) expect(article_course.article_course_timeslices.first.start).to eq('2018-11-24') - expect(article_course.article_course_timeslices.last.start).to eq('2018-11-30') # Article course timeslices caches were updated expect(article_course.article_course_timeslices.first.character_sum).to eq(427) expect(article_course.article_course_timeslices.first.references_count).to eq(-2)