Sha256: 19ae22488eb8f134946d324e2ac8271759286ebc1bdb9b385c6a89f714137033
Contents?: true
Size: 360 Bytes
Versions: 124
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: true RSpec.describe :days_ago do link :days_ago, from: :ree_date it { date = Date.new(2020, 11, 15) day_count = 5 result = days_ago(date, day_count) expect(result).to eq(Date.new(2020, 11, 10)) } it { day_count = 5 result = days_ago(day_count) expect(result).to eq(Date.today - day_count) } end
Version data entries
124 entries across 124 versions & 1 rubygems