Sha256: 44ff40e82d095f3993053c1a9a810caea922eacb9198ca64cb123adfc06973ec
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
module LocaleAppSynchronizationData def self.file(dir) File.join(dir, 'test_sync.yml') end def self.setup(polled_at=nil, updated_at=nil) polled_at ||= Time.now.to_i updated_at ||= Time.now.to_i @dir = Dir.mktmpdir @file = file(@dir) File.open(@file, 'w+') do |f| f.write({ :polled_at => polled_at, :updated_at => updated_at }.to_yaml) end @file end def self.destroy FileUtils.rm_rf @dir end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
localeapp-0.0.7 | spec/support/locale_app_synchronization_data.rb |