Source

amp / bugs / 21.rb

Full commit
require 'fileutils'

dir = "stats_test_#{rand(1000)}"

Amp::Bug.new do |b|
  b.number  21
  b.desc    "`amp clone` fails because of `amp update`"
  b.setup   { puts `bin/amp clone http://bitbucket.org/seydar/statistics #{dir}` }
  b.success { File.size("#{dir}/TODO.txt") == 166 }
  b.cleanup { FileUtils.rm_rf Dir['stats_test_*'] } # destory all similar looking dirs
end