Sha256: 4976f625b28652676a60e1d35e67cd0ab087cac250aa382d13226910f41992d4
Contents?: true
Size: 647 Bytes
Versions: 126
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true RSpec.describe :offset_to_string do link :offset_to_string, from: :ree_datetime it { expect(offset_to_string(3600)).to eq("+01:00") expect(offset_to_string(0)).to eq("+00:00") expect(offset_to_string(-3600)).to eq("-01:00") expect(offset_to_string(5400)).to eq("+01:30") expect(offset_to_string(8461)).to eq("+02:21") expect(offset_to_string(86400)).to eq("+24:00") expect(offset_to_string(-86400)).to eq("-24:00") expect { offset_to_string(-86401) }.to raise_error(ArgumentError) expect { offset_to_string(86401) }.to raise_error(ArgumentError) } end
Version data entries
126 entries across 126 versions & 1 rubygems