Sha256: 80d11213f0047bfc63c778f73b5def3efc876713cf5dcd961bc60bdf97457227
Contents?: true
Size: 665 Bytes
Versions: 15
Compression:
Stored size: 665 Bytes
Contents
require 'minitest_helper' describe Rasti::DB::TypeConverters::TimeInZone do let(:type_converter) { Rasti::DB::TypeConverters::TimeInZone } describe 'To DB' do it 'must not transform Time to TimeInZone' do time = Time.now converted_time = type_converter.to_db db, 'table', :time, time converted_time.class.must_equal Time converted_time.must_equal time end end describe 'From DB' do it 'must transform Time to TimeInZone' do time = Time.now converted_time = type_converter.from_db time converted_time.class.must_equal Timing::TimeInZone converted_time.must_equal time end end end
Version data entries
15 entries across 15 versions & 1 rubygems