Repository navigation
Conversation
Nakushi64
commented
Jan 26, 2021
- Implemented the ability to attach images on device story pages via Cloudinary and CarrierWave
- Fixed Rubocop issues coming from the master branch

| config.storage = :file | ||
| config.enable_processing = false | ||
| # else | ||
| # Another if condition might be needed for DeviceStoryImageUploader |
There was a problem hiding this comment.
@Nakushi64 I suspect this will break local log upload testing. Can you provide more info on why it's been removed?
There was a problem hiding this comment.
@matschaffer I had an issue where images would not get uploaded to Cloudinary but I would get a URL which pointed to nothing. Commenting out config.storage = :file solved it. This gave me the idea: https://stackoverflow.com/a/15961924/14162771 . How could I do an else if condition here for Cloudinary?
|
|
||
| expect { post '/device_stories/1/device_story_comments', params: { device_story_comment: comment_params } }.to change { DeviceStoryComment.count }.by(0) | ||
| expect(response.status).to eq 302 | ||
| expect(WebMock).not_to have_requested(:post, addressable) |
There was a problem hiding this comment.
@matschaffer This is related to the .save coming before .spam? bug. Fixing that caused Rspec to fail the test because now there were 2 requests coming through. As I understand it this line expects no requests to have been made to Akismet but that did not make sense for me since requests must be made to check for spam.
|
I think that we should use Active Storage for image attachment instead. See #775. |
|
Closing in favor of #775 |