PageRenderTime 54ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/bugs/21.rb

https://bitbucket.org/carbonica/amp/
Ruby | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 4a0074278993dc4fa7ce60aa26600d86 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception
  1. require 'fileutils'
  2. dir = "stats_test_#{rand(1000)}"
  3. Amp::Bug.new do |b|
  4. b.number 21
  5. b.desc "`amp clone` fails because of `amp update`"
  6. b.setup { puts `bin/amp clone http://bitbucket.org/seydar/statistics #{dir}` }
  7. b.success { File.size("#{dir}/TODO.txt") == 166 }
  8. b.cleanup { FileUtils.rm_rf Dir['stats_test_*'] } # destory all similar looking dirs
  9. end