Skip to content

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

Fix spec

Christophe Bliard676c7b6a7920
diff --git a/spec/models/queries/days/day_query_spec.rb b/spec/models/queries/days/day_query_spec.rb
index a8387b43d85..0c5131f7519 100644
--- a/spec/models/queries/days/day_query_spec.rb
+++ b/spec/models/queries/days/day_query_spec.rb
@@ -77,10 +77,10 @@ describe Queries::Days::DayQuery, type: :model do
context 'with dates out of the default range' do
let(:from) { 5.days.from_now.to_date }
- let(:to) { 5.months.from_now.to_date }
+ let(:to) { 153.days.from_now.to_date }
it 'returns all the days' do
- expect(instance.results.size).to be 149
+ expect(instance.results.size).to eq 149
end
context 'with dates missing the to date' do