test/integration/blob/container/create_container_test.rb in azure-0.7.0 vs test/integration/blob/container/create_container_test.rb in azure-0.7.1
- old
+ new
@@ -30,11 +30,11 @@
it 'creates the container with custom metadata' do
metadata = { 'CustomMetadataProperty' => 'CustomMetadataValue'}
container = subject.create_container container_name, { :metadata => metadata }
-
+
container.name.must_equal container_name
container.metadata.must_equal metadata
container = subject.get_container_metadata container_name
metadata.each { |k,v|
@@ -43,15 +43,15 @@
}
end
it 'errors if the container already exists' do
subject.create_container container_name
-
+
assert_raises(Azure::Core::Http::HTTPError) do
subject.create_container container_name
end
end
-
+
it 'errors if the container name is invalid' do
assert_raises(Azure::Core::Http::HTTPError) do
subject.create_container 'this_container.cannot-exist!'
end
end