ruby on rails - Stubbing Paperclip S3 requests in specs -


i using paperclip , s3 image uploads , trying stub out calls s3 test suite. found thoughtbot post mentions doing

  a.cover       { a.paperclip_fixture('album', 'cover', 'png') } 

but gives me "wrong number of arguments (4 2)" error. tried switching arguments above array, removes original error, gives error saying "attribute defined: paperclip_fixture".

has been able working? also, i'd ideally use local filesystem development environment. there easy way this?

are using shoulda? if aren't using shoulda paperclip_fixture method you're using may come somewhere else , behave differently.

potentially relevant: https://github.com/thoughtbot/paperclip/blob/master/shoulda_macros/paperclip.rb


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -