mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 23:49:34 +08:00
Removed unused let blocks (#7446)
The bodies of these blocks were never evaluated.
This commit is contained in:

committed by
Guo Xiang Tan

parent
17b34f5744
commit
ad44243a57
@ -3,28 +3,20 @@ require 'rails_helper'
|
||||
describe Upload do
|
||||
|
||||
let(:upload) { build(:upload) }
|
||||
let(:thumbnail) { build(:optimized_image, upload: upload) }
|
||||
|
||||
let(:user_id) { 1 }
|
||||
let(:url) { "http://domain.com" }
|
||||
|
||||
let(:image_filename) { "logo.png" }
|
||||
let(:image) { file_from_fixtures(image_filename) }
|
||||
let(:image_filesize) { File.size(image) }
|
||||
let(:image_sha1) { Upload.generate_digest(image) }
|
||||
|
||||
let(:image_svg_filename) { "image.svg" }
|
||||
let(:image_svg) { file_from_fixtures(image_svg_filename) }
|
||||
let(:image_svg_filesize) { File.size(image_svg) }
|
||||
|
||||
let(:huge_image_filename) { "huge.jpg" }
|
||||
let(:huge_image) { file_from_fixtures(huge_image_filename) }
|
||||
let(:huge_image_filesize) { File.size(huge_image) }
|
||||
|
||||
let(:attachment_path) { __FILE__ }
|
||||
let(:attachment) { File.new(attachment_path) }
|
||||
let(:attachment_filename) { File.basename(attachment_path) }
|
||||
let(:attachment_filesize) { File.size(attachment_path) }
|
||||
|
||||
context ".create_thumbnail!" do
|
||||
|
||||
@ -202,8 +194,6 @@ describe Upload do
|
||||
end
|
||||
|
||||
describe 'when upload bucket contains subfolder' do
|
||||
let(:url) { "#{SiteSetting.Upload.absolute_base_url}/path/path2#{path}" }
|
||||
|
||||
before do
|
||||
SiteSetting.s3_upload_bucket = "s3-upload-bucket/path/path2"
|
||||
end
|
||||
|
Reference in New Issue
Block a user