OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add specs
Mir Bhatiab0f2dda98ec8
diff --git a/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rb b/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rbindex 40717f9bb05..12ad0130c9d 100644--- a/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rb+++ b/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rb@@ -155,4 +155,32 @@ RSpec.describe "Recurring meetings show",expect(response).to have_http_status(:not_found)endend++ describe "Show more" do+ context "when there are more than 5 scheduled instances" do+ it "shows the footer" do+ get recurring_meeting_path(recurring_meeting)++ expect(page).to have_css("#recurring-meetings-footer-component")+ end+ end++ context "when there are 5 or fewer scheduled instances" do+ let(:recurring_meeting) do+ create :recurring_meeting,+ project:,+ author: user,+ start_time: Time.zone.today + 1.day,+ frequency: "daily",+ end_after: "iterations",+ iterations: 5+ end++ it "shows no footer" do+ get recurring_meeting_path(recurring_meeting)++ expect(page).to have_no_css("#recurring-meetings-footer-component")+ end+ end+ endend