Sha256: 50e3fddf579b02952538cd35f6d1980f25727b1405767f0e52aef48b1a0a1a2f
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe 'Fog::AWS::S3::Directories' do describe "#all" do it "should include persisted directories" do @directory = s3.directories.create(:name => 'fogdirectoryname') s3.directories.all.map {|directory| @directory.name}.should include('fogdirectoryname') @directory.destroy end end describe "#create" do it "should exist on s3" do directory = s3.directories.create(:name => 'fogdirectoryname') s3.directories.get(directory.name).should_not be_nil directory.destroy end end describe "#get" do it "should return a Fog::AWS::S3::Directory if a matching directory exists" do directory = s3.directories.create(:name => 'fogdirectoryname') get = s3.directories.get('fogdirectoryname') directory.attributes.should == get.attributes directory.destroy end it "should return nil if no matching directory exists" do s3.directories.get('fogdirectoryname').should be_nil end end describe "#reload" do it "should reload data" do directories = s3.directories directories.should == directories.reload end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.0.40 | spec/aws/models/s3/directories_spec.rb |