... 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ... 30 31 32 33 34 35 36 |
... 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 32 33 34 35 36 37 38 |
0 require File.dirname(__FILE__) + "/../integration_helpers" 0 class TestImportSvnSvn < Test::Unit::TestCase 0 - attr_reader :r :repos_path, :wc_path 0 + attr_reader :r oot_path, :repos_path, :wc_path 0 - @repos_path = PISTON_ROOT + "tmp/import_real/repos" 0 - @wc_path = PISTON_ROOT + "tmp/import_real/wc" 0 + @root_path = Pathname.new("/tmp/import_svn_svn") 0 + @repos_path = @root_path + "repos" 0 + @wc_path = @root_path + "wc" 0 - repos_path.parent.rmtree rescue nil 0 - repos_path.parent.mkpath 0 + root_path.rmtree rescue nil 0 + svnadmin :create, repos_path 0 + svn :checkout, "file://#{repos_path}", wc_path 0 + svn :mkdir, wc_path + "trunk", wc_path + "tags", wc_path + "branches", wc_path + "trunk/vendor" 0 + svn :commit, wc_path, "--message", "'first commit'" 0 - r epos_path.parent.rmtree rescue nil 0 + r oot_path.rmtree rescue nil 0 - svnadmin :create, repos_path 0 - svn :checkout, "file://#{repos_path}", wc_path 0 - svn :mkdir, wc_path + "trunk", wc_path + "tags", wc_path + "branches", wc_path + "trunk/vendor" 0 - svn :commit, wc_path, "--message", "'first commit'" 0 piston :import, "http://dev.rubyonrails.org/svn/rails/plugins/ssl_requirement/", wc_path + "trunk/vendor/ssl_requirement" 0 assert_equal "A vendor/ssl_requirement 0 A vendor/ssl_requirement/lib/ssl_requirement.rb 0 A vendor/ssl_requirement/.piston.yml 0 A vendor/ssl_requirement/README 0 -".split .sort, svn(:status, wc_path + "trunk/vendor/").gsub((wc_path + "trunk/").to_s, "").split.sort 0 +".split ("\n").sort, svn(:status, wc_path + "trunk/vendor/").gsub((wc_path + "trunk/").to_s, "").split("\n").sort 0 info = YAML.load(File.read(wc_path + "trunk/vendor/ssl_requirement/.piston.yml")) 0 assert_equal 1, info["format"]
|
Comments
No one has commented yet.