Sha256: 71939e6297b26e583d8f973dcf1f23aed637c81e03bb213056e1ec1aeda26a82
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Pimento::Canvas do describe '.new' do it 'should create canvas' do canvas = Pimento::Canvas.new(120, 240, 100, 200) canvas.to_xml.to_s.should eql(open(fixture('empty.xib')).read) end end describe '#point' do before do @canvas = Pimento::Canvas.new(120, 240, 100, 200) end it 'should point' do Pimento::Component.should_receive(:for).with(:dot).and_return(Pimento::RoundButton) @canvas.point(15, 25) @canvas.to_xml.to_s.should eql(open(fixture('1dot.xib')).read) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pimento-0.0.2 | spec/pimento_spec.rb |