0
+require File.dirname(__FILE__) + "/../test_helper"
0
+require File.dirname(__FILE__) + "/../integration_helpers"
0
+class TestImportGitGit < Test::Unit::TestCase
0
+ attr_reader :root_path, :repos_path, :wc_path
0
+ @root_path = Pathname.new("/tmp/import_git_git")
0
+ @wc_path = @root_path + "wc"
0
+ root_path.rmtree rescue nil
0
+ File.open(wc_path + "README", "wb") {|f| f.write "Hello World!"}
0
+ (wc_path + "vendor").mkdir
0
+ File.open(wc_path + "vendor/.gitignore", "wb") {|f| f.write "*.swp"}
0
+ git(:commit, "-m", "'first commit'")
0
+ root_path.rmtree rescue nil
0
+ piston(:import, "git://github.com/technoweenie/attachment_fu.git", wc_path + "vendor/attachment_fu")
0
+ assert_equal STATUS.split("\n").sort, git(:status).split("\n").sort
0
+ info = YAML.load(File.read(wc_path + "vendor/attachment_fu/.piston.yml"))
0
+ assert_equal 1, info["format"]
0
+ assert_equal "git://github.com/technoweenie/attachment_fu.git", info["handler"][Piston::Git::URL]
0
+ assert_equal "416fbb0017fa4ecaccfca4bcada592d694d532e1", info["handler"][Piston::Git::COMMIT]
0
+ STATUS = %Q(# On branch master
0
+# Changes to be committed:
0
+# (use "git reset HEAD <file>..." to unstage)
0
+#\tnew file: vendor/attachment_fu/.piston.yml
0
+#\tnew file: vendor/attachment_fu/CHANGELOG
0
+#\tnew file: vendor/attachment_fu/README
0
+#\tnew file: vendor/attachment_fu/Rakefile
0
+#\tnew file: vendor/attachment_fu/amazon_s3.yml.tpl
0
+#\tnew file: vendor/attachment_fu/init.rb
0
+#\tnew file: vendor/attachment_fu/install.rb
0
+#\tnew file: vendor/attachment_fu/lib/geometry.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/core_image_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/gd2_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb
0
+#\tnew file: vendor/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb
0
+#\tnew file: vendor/attachment_fu/test/backends/db_file_test.rb
0
+#\tnew file: vendor/attachment_fu/test/backends/file_system_test.rb
0
+#\tnew file: vendor/attachment_fu/test/backends/remote/s3_test.rb
0
+#\tnew file: vendor/attachment_fu/test/base_attachment_tests.rb
0
+#\tnew file: vendor/attachment_fu/test/basic_test.rb
0
+#\tnew file: vendor/attachment_fu/test/database.yml
0
+#\tnew file: vendor/attachment_fu/test/extra_attachment_test.rb
0
+#\tnew file: vendor/attachment_fu/test/fixtures/attachment.rb
0
+#\tnew file: vendor/attachment_fu/test/fixtures/files/fake/rails.png
0
+#\tnew file: vendor/attachment_fu/test/fixtures/files/foo.txt
0
+#\tnew file: vendor/attachment_fu/test/fixtures/files/rails.png
0
+#\tnew file: vendor/attachment_fu/test/geometry_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/core_image_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/gd2_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/image_science_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/mini_magick_test.rb
0
+#\tnew file: vendor/attachment_fu/test/processors/rmagick_test.rb
0
+#\tnew file: vendor/attachment_fu/test/schema.rb
0
+#\tnew file: vendor/attachment_fu/test/test_helper.rb
0
+#\tnew file: vendor/attachment_fu/test/validation_test.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/color.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/effects.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/perspective.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/scale.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/filters/watermark.rb
0
+#\tnew file: vendor/attachment_fu/vendor/red_artisan/core_image/processor.rb
Comments
No one has commented yet.