Sha256: c043a5e187464ef84c362f135feaa1bd34d0550def418a46fd14a14d29af90a4
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
require File.join(File.dirname(__FILE__),'..','..','lib','RMagick') include Magick describe Draw do it "should save the state when calling push and recover it after pop" do a = Draw.new a.line(5, 5, 10, 10) b = a.clone b.push b.stroke('blue') a.inspect.should != b.inspect b.pop a.inspect.should == b.inspect end it "should add one line per primitive" do a = Draw.new a.path 'M150,150 l50,50' a.inspect.split('\n').size.should == 1 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rmagick4j-0.3.5 | test/spec/draw_spec.rb |