Explicitly saving and restoring the matrix

This commit is contained in:
Andy Meneely
2015-04-02 10:14:08 -04:00
parent c9f9235be7
commit 91ba48f80b
18 changed files with 124 additions and 126 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ describe Squib::Card, '#text' do
expect(layout ).to receive(:height).once.and_return(25)
expect(layout ).to receive(:extents).thrice.and_return([nil,extent])
expect(context).to receive(:update_pango_layout).once
expect(context).to receive(:matrix).and_return(nil).once
expect(context).to receive(:matrix).and_return(Cairo::Matrix.new(1, 0, 0, 1, 0, 0)).once
expect(context).to receive(:show_pango_layout).once
expect(context).to receive(:matrix=).once
expect(context).to receive(:restore).once