Sha256: e1ccda9843e1c538f15a1e0967e8ccbe5287c32d28d3fc930ff42989184578da
Contents?: true
Size: 669 Bytes
Versions: 6
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' describe OData4::Properties::TimeOfDay do let(:subject) { OData4::Properties::TimeOfDay.new('TimeOfDay', '16:00:00.000') } let(:new_time) { Time.strptime('14:32:00.000', '%H:%M:%S.%L') } it { expect(subject.type).to eq('Edm.TimeOfDay') } it { expect(subject.value).to eq(Time.parse('16:00:00.000')) } it { expect(subject.url_value).to eq("16:00:00.000")} it { expect {subject.value = 'bad'}.to raise_error(ArgumentError) } it { expect(lambda { subject.value = '14:32:00.000' subject.value }.call).to eq(new_time) } it { expect(lambda { subject.value = new_time subject.value }.call).to eq(new_time) } end
Version data entries
6 entries across 6 versions & 1 rubygems