test/integration/blob/copy_blob_test.rb in azure-0.7.0 vs test/integration/blob/copy_blob_test.rb in azure-0.7.1

- old
+ new

@@ -25,11 +25,11 @@ let(:metadata){ {"custommetadata" => "CustomMetadataValue"} } let(:dest_container_name) { ContainerNameHelper.name } let(:dest_blob_name) { "destaudio+video%25.mp4" } - before { + before { subject.create_container source_container_name subject.create_block_blob source_container_name, source_blob_name, content subject.create_container dest_container_name } @@ -74,17 +74,17 @@ blob, returned_content = subject.get_blob source_container_name, source_blob_name returned_content.must_equal content + "more content" # do copy against, snapshot subject.copy_blob dest_container_name, dest_blob_name, source_container_name, source_blob_name, { :source_snapshot => snapshot } - + blob, returned_content = subject.get_blob dest_container_name, dest_blob_name - # verify copied content is old content + # verify copied content is old content returned_content.must_equal content end end - + describe 'when a options hash is used' do it 'replaces source metadata on the copy with provided Hash in :metadata property' do copy_id, copy_status = subject.copy_blob dest_container_name, dest_blob_name, source_container_name, source_blob_name, { :metadata => metadata } copy_id.wont_be_nil