Permalink
Browse files

Improve test for find_first

  • Loading branch information...
1 parent 5b3fa02 commit c50ac2cc1dbd73764bc6cc430c5e189a439d02ff @mitfik mitfik committed Jul 9, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 test/service_test.rb
View
@@ -87,10 +87,8 @@ def setup
end
end
- test "buckets find first fail" do
- assert_raise S3::Error::NoSuchBucket do
- @service_bucket_not_exists.buckets.find_first("data2.example.com")
- end
+ test "buckets find first return nil" do
+ assert_equal nil, @service_bucket_not_exists.buckets.find_first("data2.example.com")
end
test "buckets find all on empty list" do

0 comments on commit c50ac2c

Please sign in to comment.