Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
test(time-sessions): pin both rows of the index table spec to today
Guido Boyke365c5cad79d6
diff --git a/spec/requests/organisations/time_sessions_index_table_spec.rb b/spec/requests/organisations/time_sessions_index_table_spec.rbindex 3a436b3..8942a31 100644--- a/spec/requests/organisations/time_sessions_index_table_spec.rb+++ b/spec/requests/organisations/time_sessions_index_table_spec.rb@@ -26,16 +26,21 @@ RSpec.describe 'Organisations::TimeSessions index table', type: :request docreate(:ticket, project: project, creator: user, title: 'Alpha-Aufgabe')endend+ # Both rows today, in the month of the entry the create posts. The list+ # shows the newest month first and sorts by subject only inside a month;+ # the factory's occurred_on (now + n hours, n counting across the suite)+ # put the two rows into two months near a month's end, and the row without+ # a subject then came first (red on 27.10.2026 between 11 and 12 UTC).let!(:session_with_ticket) doActsAsTenant.with_tenant(organisation) docreate(:time_session, organisation: organisation, project: project, ticket: ticket,- creator: user, duration: 60)+ creator: user, duration: 60, occurred_on: Date.current.noon)endendlet!(:session_without_ticket) doActsAsTenant.with_tenant(organisation) docreate(:time_session, organisation: organisation, project: project, ticket: nil,- creator: user, duration: 30)+ creator: user, duration: 30, occurred_on: Date.current.noon + 1.hour)endend