test/integration/blob/blob_properties_test.rb in azure-0.7.0 vs test/integration/blob/blob_properties_test.rb in azure-0.7.1
- old
+ new
@@ -21,11 +21,11 @@
describe '#set/get_blob_properties' do
let(:container_name) { ContainerNameHelper.name }
let(:blob_name) { "blobname" }
let(:length) { 1024 }
- before {
+ before {
subject.create_container container_name
subject.create_page_blob container_name, blob_name, length
}
let(:options){{
:blob_content_type=>"application/my-special-format",
@@ -45,11 +45,11 @@
describe 'when a blob has a snapshot' do
before {
subject.set_blob_properties container_name, blob_name, options
}
-
+
it 'gets properties for a blob snapshot' do
snapshot = subject.create_blob_snapshot container_name, blob_name
blob = subject.get_blob_properties container_name, blob_name, { :snapshot => snapshot }
blob.snapshot.must_equal snapshot
@@ -62,10 +62,10 @@
assert_raises(Azure::Core::Http::HTTPError) do
subject.get_blob_properties container_name, blob_name, { :snapshot => "invalidsnapshot" }
end
end
end
-
+
it 'errors if the blob name does not exist' do
assert_raises(Azure::Core::Http::HTTPError) do
subject.get_blob_properties container_name, "thisblobdoesnotexist"
end
assert_raises(Azure::Core::Http::HTTPError) do