test/test_helper.rb in rails_uploads-0.2.1 vs test/test_helper.rb in rails_uploads-0.2.2
- old
+ new
@@ -31,12 +31,12 @@
Rails.application.config.uploads.storage = :s3
RailsUploads::Storages::S3.config = YAML.load_file(Rails.root.join('config', 's3.yml')) if RailsUploads::Storages::S3.config.blank?
self.class.teardown { Rails.application.config.uploads.storage = @storage_type }
end
- def fixture_file_upload_s3(fixture, type, path, tmp=true)
+ def fixture_file_upload_s3(fixture, type, path, default=false)
upload = fixture_file_upload(fixture, type)
- storage = RailsUploads::Storages::S3.new(tmp)
+ storage = RailsUploads::Storages::S3.new(default)
storage.store(upload, path)
end
def assert_object_s3(url)
assert_equal '200', Net::HTTP.get_response(url).code