Sha256: 554376d56d44aae6b1795adad09ae0f2d7c4f1c8fdde8eeec5c94fd4b888482a

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
message-recorder-1.0.1 spec/chain_spec.rb
message-recorder-1.0.0 spec/chain_spec.rb
message-recorder-1.0.2 spec/chain_spec.rb
message-recorder-1.0.3 spec/chain_spec.rb