Sha256: e13556a1cebe088c6cdb99b8054a255ca4da9b2d012b6c5645b61f143bcfed14
Contents?: true
Size: 370 Bytes
Versions: 126
Compression:
Stored size: 370 Bytes
Contents
# frozen_string_literal: true RSpec.describe :weeks_ago do link :weeks_ago, from: :ree_date it { date = Date.new(2020, 11, 15) week_count = 2 result = weeks_ago(date, week_count) expect(result).to eq(Date.new(2020, 11, 1)) } it { week_count = 5 result = weeks_ago(week_count) expect(result).to eq(Date.today - week_count*7) } end
Version data entries
126 entries across 126 versions & 1 rubygems