Sha256: 3c0db4e78bb739e77cd55dc6cdd74a5cc0d8612275fe71a18256caa850b38c00

Contents?: true

Size: 726 Bytes

Versions: 14

Compression:

Stored size: 726 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'Storage.put_request_payment' do
  describe 'success' do

    before(:each) do
      AWS[:storage].put_bucket('fogputrequestpayment')
    end

    after(:each) do
      AWS[:storage].delete_bucket('fogputrequestpayment')
    end

    it 'should return proper attributes' do
      actual = AWS[:storage].put_request_payment('fogputrequestpayment', 'Requester')
      actual.status.should == 200
    end

  end
  describe 'failure' do

    it 'should raise a NotFound error if bucket does not exist' do
      lambda {
        AWS[:storage].put_request_payment('fognotabucket', 'Requester')
      }.should raise_error(Excon::Errors::NotFound)
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.3.13 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.12 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.11 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.10 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.9 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.8 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.7 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.6 spec/aws/requests/storage/put_request_payment_spec.rb
fog-0.3.5 spec/aws/requests/s3/put_request_payment_spec.rb
fog-0.3.4 spec/aws/requests/s3/put_request_payment_spec.rb
fog-0.3.3 spec/aws/requests/s3/put_request_payment_spec.rb
fog-0.3.2 spec/aws/requests/s3/put_request_payment_spec.rb
fog-0.3.1 spec/aws/requests/s3/put_request_payment_spec.rb
fog-0.3.0 spec/aws/requests/s3/put_request_payment_spec.rb