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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
293 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'
2020-07-28 23:09:34 +05:30
RSpec.describe Forever do
2018-05-09 12:01:36 +05:30
describe '.date' do
subject { described_class.date }
2019-10-12 21:52:04 +05:30
it 'returns Postgresql future date' do
2021-01-03 14:25:43 +05:30
travel_to(Date.new(2999, 12, 31)) do
2019-10-12 21:52:04 +05:30
is_expected.to be > Date.today
2018-05-09 12:01:36 +05:30
end
end
end
end