Sha256: e058c18a75bcc36949a800438166192b6d1dc7e053f200f070f21a02d27e165d
Contents?: true
Size: 431 Bytes
Versions: 9
Compression:
Stored size: 431 Bytes
Contents
require 'spec_helper' describe Date do let(:date) { Date.parse("2010-01-01") } before { Time.zone = ActiveSupport::TimeZone["Adelaide"] } subject(:converted) { date.to_time_in_time_zone } it "should convert to time in time zone" do expect(converted.year).to eq date.year expect(converted.month).to eq date.month expect(converted.day).to eq date.day expect(converted.time_zone).to eq Time.zone end end
Version data entries
9 entries across 9 versions & 1 rubygems