mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 12:02:05 +08:00
display the size of the attachment in the preview
instead of adding it during post processing
This commit is contained in:
@ -34,8 +34,6 @@ describe CookedPostProcessor do
|
||||
cpp.html.should =~ /#{LocalStore.base_url}/
|
||||
# ensure name is present
|
||||
cpp.html.should =~ /archive.zip/
|
||||
# ensure size is present
|
||||
cpp.html.should =~ /<span class=\"size\">\(1.21 KB\)<\/span>/
|
||||
# dirty
|
||||
cpp.should be_dirty
|
||||
# keeps the reverse index up to date
|
||||
@ -79,8 +77,6 @@ describe CookedPostProcessor do
|
||||
cpp.post_process_images
|
||||
# ensures absolute urls on uploaded images
|
||||
cpp.html.should =~ /#{LocalStore.base_url}/
|
||||
# dirty
|
||||
cpp.should be_dirty
|
||||
# keeps the reverse index up to date
|
||||
post.uploads.reload
|
||||
post.uploads.count.should == 1
|
||||
|
Reference in New Issue
Block a user