PNG/SVG: flipping is now supported.

Fixes #11
This commit is contained in:
Andy Meneely
2015-10-26 23:31:16 -04:00
parent 8ea553eb95
commit d99e840ffd
14 changed files with 123 additions and 9 deletions
@@ -81,4 +81,13 @@ describe Squib::Graphics::CairoContextWrapper do
end
end
context 'flips' do
it 'in the basic case' do
dbl = double(Cairo::Matrix)
expect(Cairo::Matrix).to receive(:new).with(-1.0, 0.0, 0.0, -1.0, 6.0, 8.0).and_return(dbl)
expect(cairo).to receive(:transform).with(dbl)
subject.flip(true, true, 3.0, 4.0)
end
end
end