Sha256: f6553ca1f3243b9fb4a1281510b00c68075d96b3db3befcb6de41ac7037d6ced
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
require 'test_helper' require 'azure/blobs/service' describe "Blob Services" do describe "CreateBlockBlob" do it "should raise an error if the file is bigger than 64 Mb" do file_class = MiniTest::Mock.new file_class.stub(:size, 100000000) service = Azure::Blobs::Services::CreateBlockBlob.new("fake-access-key") proc { service.call("container_name", "blob_name", "filename", {}, file_class) }.must_raise ArgumentError, "File exceeded 64Mb limit." end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | test/unit/blobs/service_test.rb |
azure-0.1.0 | test/unit/blobs/service_test.rb |