Skip to content

Commit ac6f7d3

Browse files
add two_years_ahead date option in date range picker to ensure test works
1 parent f64bc4c commit ac6f7d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/support/date_range_picker_shared_example.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def date_range_picker_select_range(range_name)
2323
let!(:recent) { create(described_class.to_s.underscore.to_sym, date_field.to_sym => Time.zone.local(2019, 7, 24), :organization => organization) }
2424
let!(:today) { create(described_class.to_s.underscore.to_sym, date_field.to_sym => Time.zone.local(2019, 7, 31), :organization => organization) }
2525
let!(:one_year_ahead) { create(described_class.to_s.underscore.to_sym, date_field.to_sym => Time.zone.local(2020, 7, 31), :organization => organization) }
26+
let!(:two_years_ahead) { create(described_class.to_s.underscore.to_sym, date_field.to_sym => Time.zone.local(2021, 7, 31), :organization => organization) }
2627

2728
context "when choosing 'All Time'" do
2829
before do

0 commit comments

Comments
 (0)