diff --git a/spec/advisory_example.rb b/spec/advisory_example.rb index b160580f74..ff24bd6805 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 no dates in the future" do + expect(subject).to be <= Date.today + end end describe "description" do