debian-mirror-gitlab/spec/lib/forever_spec.rb
2020-08-09 17:41:57 +05:30

15 lines
298 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Forever do
describe '.date' do
subject { described_class.date }
it 'returns Postgresql future date' do
Timecop.travel(Date.new(2999, 12, 31)) do
is_expected.to be > Date.today
end
end
end
end