FIX: raise exception when getting dimensions of missing image

- follow-up on 0eacd45ab15cbd20ed9f444fd447886a7fc6dccb
This commit is contained in:
Penar Musaraj
2018-12-03 10:19:49 -05:00
parent 9125b5fbc4
commit f8e6a37858
4 changed files with 17 additions and 7 deletions

View File

@ -24,10 +24,6 @@ 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