s3_relay 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ FactoryGirl.define do
3
3
  uuid SecureRandom.uuid
4
4
  filename "cat.png"
5
5
  content_type "image/png"
6
+ upload_type "FileUpload"
6
7
  end
7
8
 
8
9
  factory :icon_upload, parent: :upload do
@@ -109,6 +109,19 @@ describe S3Relay::Upload do
109
109
  end
110
110
  end
111
111
 
112
+ describe "#notify_parent" do
113
+ before { @upload = FactoryGirl.build(:upload) }
114
+
115
+ describe "when the parent is associated" do
116
+ it do
117
+ @product = FactoryGirl.create(:product)
118
+ @upload.parent = @product
119
+ @product.expects(:import_upload)
120
+ @upload.save
121
+ end
122
+ end
123
+ end
124
+
112
125
  describe "#private_url" do
113
126
  it do
114
127
  uuid = SecureRandom.uuid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_relay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenny Johnston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-22 00:00:00.000000000 Z
11
+ date: 2014-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  requirements: []
249
249
  rubyforge_project:
250
- rubygems_version: 2.2.2
250
+ rubygems_version: 2.4.3
251
251
  signing_key:
252
252
  specification_version: 4
253
253
  summary: Direct uploads to S3 and ingestion by your Rails app.