Sha256: 82696555f5ecc7b24b9d18bde0fef137f9fa4627325f7fd5dd42315d62e30d1d
Contents?: true
Size: 839 Bytes
Versions: 39
Compression:
Stored size: 839 Bytes
Contents
Shindo.tests('Fog::Rackspace::Storage | account', ['rackspace']) do @account = Fog::Storage[:rackspace].account tests('load') do headers = @account.service.head_containers.headers returns(headers['X-Account-Meta-Temp-Url-Key']) { @account.meta_temp_url_key } returns(headers['X-Account-Container-Count'].to_i) { @account.container_count } returns(headers['X-Account-Bytes-Used'].to_i) { @account.bytes_used } returns(headers['X-Account-Object-Count'].to_i) { @account.object_count } end tests('reload') do @account.reload end tests('save') do key = "testing-update-#{Time.now.to_i}" @account.meta_temp_url_key = "testing-update-#{Time.now.to_i}" @account.save headers = @account.service.head_containers.headers returns(key) { headers['X-Account-Meta-Temp-Url-Key'] } end end
Version data entries
39 entries across 37 versions & 6 rubygems