Sha256: 5c2589a9723d0808483d58ee8d172673af6c29836aa59f12856e019d77bcf184
Contents?: true
Size: 545 Bytes
Versions: 126
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true RSpec.describe :all_week do link :all_week, from: :ree_datetime it { monday = all_week(DateTime.new(2022, 5, 25, 13, 15, 15), :monday) sunday = all_week(DateTime.new(2022, 5, 25, 13, 15, 15), :sunday) expect(monday).to eq(DateTime.new(2022, 5, 23, 0, 0, 0)..DateTime.new(2022, 5, 29, 23, 59, 59.999999)) expect(sunday).to eq(DateTime.new(2022, 5, 22, 0, 0, 0)..DateTime.new(2022, 5, 28, 23, 59, 59.999999)) } it { result = all_week(:monday) expect(result).to be_a(Range) } end
Version data entries
126 entries across 126 versions & 1 rubygems