summaryrefslogtreecommitdiff
path: root/spec/lib/forever_spec.rb
blob: 6f6b3055df5f4b439df0780571eba623314b73a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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