Sha256: 7ebda5aa932b45c56f9129566fb96fe190ddd77b6629f79a4cd6d4f4ce1e4fe3
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' describe Citrix::Training::Serializer::TrainingDate do describe '#serialize' do it 'returns starting date' do starting = Time.now ending = starting + 3600 params = serialize(starts_at: starting, ends_at: ending) expect(params).to include(startDate: starting.iso8601) end it 'returns ending date' do starting = Time.now ending = starting + 3600 params = serialize(starts_at: starting, ends_at: ending) expect(params).to include(endDate: ending.iso8601) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citrix-0.2.0 | spec/citrix/training/serializer/training_date_spec.rb |
citrix-0.1.0 | spec/citrix/training/serializer/training_date_spec.rb |