|
|
|
@ -23,7 +23,7 @@ describe Squib::Card do |
|
|
|
|
|
|
|
|
|
|
|
context 'rect' do |
|
|
|
context 'rect' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
expect(@context).to receive(:antialias=).with('best') |
|
|
|
expect(@context).to receive(:antialias=).with('subpixel') |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:rounded_rectangle).with(37, 38, 50, 100, 10, 15).twice |
|
|
|
expect(@context).to receive(:rounded_rectangle).with(37, 38, 50, 100, 10, 15).twice |
|
|
|
expect_stroke('#fff', '#f00', 2.0) |
|
|
|
expect_stroke('#fff', '#f00', 2.0) |
|
|
|
@ -38,7 +38,7 @@ describe Squib::Card do |
|
|
|
|
|
|
|
|
|
|
|
context 'circle' do |
|
|
|
context 'circle' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
expect(@context).to receive(:antialias=).with('best') |
|
|
|
expect(@context).to receive(:antialias=).with('subpixel') |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:move_to).with(137, 38) |
|
|
|
expect(@context).to receive(:move_to).with(137, 38) |
|
|
|
expect(@context).to receive(:circle).with(37, 38, 100).twice |
|
|
|
expect(@context).to receive(:circle).with(37, 38, 100).twice |
|
|
|
@ -54,7 +54,7 @@ describe Squib::Card do |
|
|
|
|
|
|
|
|
|
|
|
context 'triangle' do |
|
|
|
context 'triangle' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
expect(@context).to receive(:antialias=).with('best') |
|
|
|
expect(@context).to receive(:antialias=).with('subpixel') |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:triangle).with(1, 2, 3, 4, 5, 6).twice |
|
|
|
expect(@context).to receive(:triangle).with(1, 2, 3, 4, 5, 6).twice |
|
|
|
expect_stroke('#fff', '#f00', 2.0) |
|
|
|
expect_stroke('#fff', '#f00', 2.0) |
|
|
|
@ -67,7 +67,7 @@ describe Squib::Card do |
|
|
|
|
|
|
|
|
|
|
|
context 'line' do |
|
|
|
context 'line' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
it 'make all the expected calls on a smoke test' do |
|
|
|
expect(@context).to receive(:antialias=).with('best') |
|
|
|
expect(@context).to receive(:antialias=).with('subpixel') |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:save).once |
|
|
|
expect(@context).to receive(:move_to).with(1, 2).once |
|
|
|
expect(@context).to receive(:move_to).with(1, 2).once |
|
|
|
expect(@context).to receive(:line_to).with(3, 4).once |
|
|
|
expect(@context).to receive(:line_to).with(3, 4).once |
|
|
|
|