require File.dirname(__FILE__) + '/spec_helper' describe Message::Recorder::Chain do before do @recorder = Message::Recorder.new end it "should record" do chain = Message::Recorder::Chain.new chain.record(:downcase) chain.record(:+, " world") chain.size.should be_eql(2) chain.send_to("HELLO",@recorder).should be_eql("hello world") end it "should dup properly" do chain = Message::Recorder::Chain.new chain.record(:downcase) chain.record(:+, " world") chain.dup.should be_eql(chain) end end