* Fallback to the image URL if neither Cloudinary nor Imgproxy are configured * Fix specs * Cloudinary api_secret is required * Update spec/models/message_spec.rb Co-authored-by: Michael Kohl <citizen428@dev.to> Co-authored-by: Michael Kohl <citizen428@dev.to>
8 lines
391 B
Ruby
8 lines
391 B
Ruby
RSpec.configure do |config|
|
|
config.before(:each, cloudinary: true) do |_example|
|
|
allow(Cloudinary.config).to receive(:cloud_name).and_return("CLOUD_NAME")
|
|
allow(Cloudinary.config).to receive(:api_key).and_return("API_KEY")
|
|
allow(Cloudinary.config).to receive(:api_secret).and_return("API_SECRET")
|
|
allow(Cloudinary.config).to receive(:secure).and_return("SECURE")
|
|
end
|
|
end
|