Sha256: f5d3043641a0ae93b7a8d18a82df405668cd25c26eb934e375324e07ebaf8c99
Contents?: true
Size: 679 Bytes
Versions: 6
Compression:
Stored size: 679 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 = Timing::TimeInZone.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
6 entries across 6 versions & 1 rubygems