mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Remove unnecessary post fabricator
This commit is contained in:
parent
cf60f5feee
commit
ef1558c98d
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ describe CookedPostProcessor do
|
|||
|
||||
context "with large images when using subfolders" do
|
||||
|
||||
let(:subfolder_upload) { Fabricate(:subfolder_upload) }
|
||||
let(:upload) { Fabricate(:upload) }
|
||||
let(:post) { Fabricate(:post_with_large_image_on_subfolder) }
|
||||
let(:cpp) { CookedPostProcessor.new(post) }
|
||||
let(:base_url) { "http://test.localhost/subfolder" }
|
||||
|
@ -142,7 +142,7 @@ describe CookedPostProcessor do
|
|||
Discourse.stubs(:base_url).returns(base_url)
|
||||
Discourse.stubs(:base_uri).returns(base_uri)
|
||||
|
||||
Upload.expects(:get_from_url).returns(subfolder_upload)
|
||||
Upload.expects(:get_from_url).returns(upload)
|
||||
FastImage.stubs(:size).returns([1000, 2000])
|
||||
|
||||
# hmmm this should be done in a cleaner way
|
||||
|
|
Loading…
Reference in a new issue