spec/archive/verifier_spec.rb in heirloom-0.8.1 vs spec/archive/verifier_spec.rb in heirloom-0.8.2
- old
+ new
@@ -20,9 +20,10 @@
Heirloom::AWS::S3.should_receive(:new).
with(:config => @config_mock,
:region => 'us-east-1').
and_return @s3_mock
end
+
it "should return false if a bucket does not exist in a region" do
@s3_mock.should_receive(:get_bucket).with('bucket123-us-west-1').
and_return nil
@s3_mock.should_receive(:get_bucket).with('bucket123-us-east-1').
and_return 'an s3 bucket'