FIX: refactor ImageSizer.resize

reverts 140d9c2
This commit is contained in:
Penar Musaraj
2018-11-29 15:28:45 -05:00
parent 140d9c2910
commit 0eacd45ab1
3 changed files with 6 additions and 4 deletions

View File

@@ -24,6 +24,10 @@ describe ImageSizer do
expect(ImageSizer.resize('100', '101')).to eq([100, 101])
end
it 'returns nil if no width or height are provided' do
expect(ImageSizer.resize).to eq(nil)
end
describe 'when larger than the maximum width' do
before do