Sha256: 4f0c3e6f8a20ea9e1d44e17de02fa35bab714be9ae70d510217ba07909bff104
Contents?: true
Size: 641 Bytes
Versions: 9
Compression:
Stored size: 641 Bytes
Contents
# Copyright (c) 2011, SoundCloud Ltd., Rany Keddo, Tobias Bielohlawek, Tobias # Schmidt require File.expand_path(File.dirname(__FILE__)) + '/unit_helper' require 'lhm/table' require 'lhm/migration' describe Lhm::Migration do include UnitHelper before(:each) do @start = Time.now @origin = Lhm::Table.new("origin") @destination = Lhm::Table.new("destination") @migration = Lhm::Migration.new(@origin, @destination, @start) end it "should name archive" do stamp = "%Y_%m_%d_%H_%M_%S_#{ "%03d" % (@start.usec / 1000) }" @migration.archive_name.must_equal "lhma_#{ @start.strftime(stamp) }_origin" end end
Version data entries
9 entries across 9 versions & 2 rubygems