Sha256: 59709c75ca5742222eb1e78f1cf394dd948d70661e68282e1878a91dd9c9f9a9
Contents?: true
Size: 497 Bytes
Versions: 27
Compression:
Stored size: 497 Bytes
Contents
require 'examples/passing/io_processor' require 'stringio' describe "An IoProcessor" do before(:each) do @processor = IoProcessor.new end it "should raise nothing when the file is exactly 32 bytes" do lambda { @processor.process(StringIO.new("z"*32)) }.should_not raise_error end it "should raise an exception when the file length is less than 32 bytes" do lambda { @processor.process(StringIO.new("z"*31)) }.should raise_error(DataTooShort) end end
Version data entries
27 entries across 27 versions & 10 rubygems