2009-11-02 02:34:00 -05:00
|
|
|
require File.dirname(__FILE__) + '/../../../spec_helper'
|
|
|
|
|
|
|
|
describe 'Rackspace::Files.put_object' do
|
|
|
|
describe 'success' do
|
|
|
|
|
2009-11-05 12:24:58 -05:00
|
|
|
before(:each) do
|
|
|
|
files.put_container('container_name')
|
|
|
|
end
|
|
|
|
|
|
|
|
after(:each) do
|
2009-11-06 02:54:10 -05:00
|
|
|
files.delete_object('container_name', 'object_name')
|
2009-11-05 12:24:58 -05:00
|
|
|
files.delete_container('container_name')
|
|
|
|
end
|
|
|
|
|
2009-11-02 02:34:00 -05:00
|
|
|
it "should return proper attributes" do
|
2009-11-05 12:24:58 -05:00
|
|
|
files.put_object('container_name', 'object_name', lorem_file)
|
2009-11-02 02:34:00 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|