mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 04:43:37 +08:00
8 lines
164 B
Ruby
8 lines
164 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module FastImageHelpers
|
||
|
def stub_image_size(width: nil, height: nil)
|
||
|
FastImage.stubs(:size).returns([width, height])
|
||
|
end
|
||
|
end
|