From 646abe322ca1e58bd96af3b80ef7e813d8ce5941 Mon Sep 17 00:00:00 2001 From: youpy Date: Tue, 25 May 2010 01:47:23 +0900 Subject: [PATCH] fix spec --- spec/pimento_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/pimento_spec.rb b/spec/pimento_spec.rb index 1fac51c..d00409b 100644 --- a/spec/pimento_spec.rb +++ b/spec/pimento_spec.rb @@ -14,6 +14,8 @@ 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