test/s3_commands_test.rb in fakes3-1.0.0 vs test/s3_commands_test.rb in fakes3-1.1.0
- old
+ new
@@ -39,14 +39,14 @@
end
end
def test_store
bucket = Bucket.create("ruby_aws_s3")
- S3Object.store("hello","world","ruby_aws_s3")
+ S3Object.store("hello", "world", "ruby_aws_s3")
output = ""
- obj = S3Object.stream("hello","ruby_aws_s3") do |chunk|
+ obj = S3Object.stream("hello", "ruby_aws_s3") do |chunk|
output << chunk
end
assert_equal "world", output
end
@@ -106,10 +106,9 @@
obj = S3Object.find("key_with_metadata2", "ruby_aws_s3")
assert_equal "one", obj.metadata[:param1]
assert_equal "two, three", obj.metadata[:param2]
end
-
def test_multi_directory
bucket = Bucket.create("ruby_aws_s3")
S3Object.store("dir/myfile/123.txt","recursive","ruby_aws_s3")