From deaefa5aa4bfd04d71c024dff616bc902c2dacf9 Mon Sep 17 00:00:00 2001 From: Al Snow <43523+jasnow@users.noreply.github.com> Date: Wed, 29 Jul 2026 20:15:39 -0400 Subject: [PATCH 1/2] Added rspec line check for no future dates --- spec/advisory_example.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/advisory_example.rb b/spec/advisory_example.rb index b160580f74..734502080e 100644 --- a/spec/advisory_example.rb +++ b/spec/advisory_example.rb @@ -139,6 +139,10 @@ subject { advisory['date'] } it { expect(subject).to be_kind_of(Date) } + + it "has a date not in the future" do + expect(subject).to be <= Date.today + end end describe "description" do From e3f13d39975fd71204d354879085370763dcb567 Mon Sep 17 00:00:00 2001 From: Al Snow <43523+jasnow@users.noreply.github.com> Date: Thu, 30 Jul 2026 09:28:43 -0400 Subject: [PATCH 2/2] Rename test for future date validation --- spec/advisory_example.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/advisory_example.rb b/spec/advisory_example.rb index 734502080e..ff24bd6805 100644 --- a/spec/advisory_example.rb +++ b/spec/advisory_example.rb @@ -140,7 +140,7 @@ it { expect(subject).to be_kind_of(Date) } - it "has a date not in the future" do + it "has no dates in the future" do expect(subject).to be <= Date.today end end