diff --git a/test/test_helper.rb b/test/test_helper.rb
index <HASH>..<HASH> 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -16,4 +16,20 @@ end
 
 class ActiveSupport::TestCase
   fixtures :all
+
+  def self.aws_setup
+    paperclip_config = AnotherUploader.configuration.has_attached_file_options
+    @@bucket ||= paperclip_config[:bucket]
+    AWS.config(paperclip_config[:s3_credentials])
+    AWS::S3.new
+  end
+
+  def self.bucket
+    @@aws ||= self.aws_setup
+    @@aws.buckets[@@bucket]
+  end
+
+  def assert_remote_file_exists path
+    assert self.class.bucket.objects[path].exists?, "Expected #{path} to be uploaded to bucket #{@@bucket}"
+  end
 end
added AWS query function to test_helper