diff options
| author | mo khan <mo@mokhan.ca> | 2014-06-06 22:39:49 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-06-06 22:39:49 -0600 |
| commit | b3d59861124ece048e34fcb58c1a3ec99ed3feba (patch) | |
| tree | f10182a24fa0716422594d24b9e75a447622432c /spec/services | |
| parent | 7a446b9e030972f57b2547d3269fb601efc74306 (diff) | |
add spec to upload files to s3.
Diffstat (limited to 'spec/services')
| -rw-r--r-- | spec/services/infrastructure/blob_storage_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/services/infrastructure/blob_storage_spec.rb b/spec/services/infrastructure/blob_storage_spec.rb new file mode 100644 index 00000000..7394cfc2 --- /dev/null +++ b/spec/services/infrastructure/blob_storage_spec.rb @@ -0,0 +1,11 @@ +require "spec_helper" + +describe BlobStorage do + context "when uploading" do + let(:file) { File.join(Rails.root, 'spec/fixtures/images/gps.jpg') } + + it "uploads to s3" do + BlobStorage.new.upload("test#{SecureRandom.uuid}", file) + end + end +end |
