debian-mirror-gitlab/spec/lib/forever_spec.rb

16 lines
292 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-05-09 12:01:36 +05:30
require 'spec_helper'
describe Forever do
describe '.date' do
subject { described_class.date }
2019-10-12 21:52:04 +05:30
it 'returns Postgresql future date' do
Timecop.travel(Date.new(2999, 12, 31)) do
is_expected.to be > Date.today
2018-05-09 12:01:36 +05:30
end
end
end
end