Support png scaling, but warns on use.
This commit is contained in:
@@ -7,7 +7,7 @@ describe Squib::Deck, 'images' do
|
||||
it 'calls Card#png, Dir, and progress bar' do
|
||||
card = instance_double(Squib::Card)
|
||||
progress = double(Squib::Progress)
|
||||
expect(card).to receive(:png).with('foo', 0, 1, 0.5, :overlay, 0.75).once
|
||||
expect(card).to receive(:png).with('foo', 0, 1, :native, :native, 0.5, :overlay, 0.75).once
|
||||
expect(Dir).to receive(:chdir).with('.').and_yield.once
|
||||
expect(progress).to receive(:start).and_yield(progress).once
|
||||
expect(progress).to receive(:increment).once
|
||||
|
||||
Reference in New Issue
Block a user