Class: Fakerclip::Writes
- Inherits:
-
Object
- Object
- Fakerclip::Writes
- Defined in:
- lib/fakerclip/writes.rb
Overview
TODO: * set mocking for Excon to only apply to some-bucket.s3.amazonaws.com and only while paperclip is making the requests, so we don’t clobber other legit requests.
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/fakerclip/writes.rb', line 7 def self.activate # fog gem support ::Excon.stub({ method: "PUT" }, FakeS3::ExconResponder.block) ::Excon.defaults[:mock] = true # aws-sdk gem support Artifice.activate_with(FakeS3::AWSSDKResponder.new) end |