test/s3cmd_test.rb in fakes3-0.1.4 vs test/s3cmd_test.rb in fakes3-0.1.5
- old
+ new
@@ -1,15 +1,12 @@
require 'test/test_helper'
require 'fileutils'
-# You need to have s3cmd installed to use this
-# Also, s3cmd doesn't support path style requests, so in order to properly test
-# it you need to modify your dns by changing /etc/hosts or using dnsmasq
class S3CmdTest < Test::Unit::TestCase
-
def setup
config = File.expand_path(File.join(File.dirname(__FILE__),'local_s3_cfg'))
+ raise "Please install s3cmd" if `which s3cmd`.empty?
@s3cmd = "s3cmd --config #{config}"
end
def teardown
end
@@ -50,7 +47,6 @@
def test_multi_directory
end
def test_intra_bucket_copy
end
-
end