test/integration/blob/blob_pages_test.rb in azure-0.7.0 vs test/integration/blob/blob_pages_test.rb in azure-0.7.1
- old
+ new
@@ -16,21 +16,21 @@
require 'azure/blob/blob_service'
describe Azure::Blob::BlobService do
subject { Azure::Blob::BlobService.new }
after { TableNameHelper.clean }
-
+
let(:container_name) { ContainerNameHelper.name }
let(:blob_name) { 'blobname' }
let(:blob_name2) { 'blobname2' }
let(:length) { 2560 }
- before {
+ before {
subject.create_container container_name
subject.create_page_blob container_name, blob_name, length
subject.create_page_blob container_name, blob_name2, length
}
-
+
describe '#create_blob_pages' do
it 'creates pages in a page blob' do
content = ''
512.times.each{|i| content << '@' }
@@ -65,11 +65,11 @@
subject.create_blob_pages container_name, blob_name, 1024, 1535, content, { :if_match => blob.properties[:etag] }
end
end
describe '#clear_blob_pages' do
- before {
+ before {
content = ''
512.times.each{|i| content << '@' }
subject.create_blob_pages container_name, blob_name, 0, 511, content
subject.create_blob_pages container_name, blob_name, 1024, 1535, content
@@ -98,10 +98,10 @@
end
end
end
describe '#list_page_blob_ranges' do
- before {
+ before {
content = ''
512.times.each{|i| content << '@' }
subject.create_blob_pages container_name, blob_name, 0, 511, content
subject.create_blob_pages container_name, blob_name, 1024, 1535, content