Sha256: 849bbd3b286f93086da87bc69ce82c81f56bda455c1843cfe3817d58c08987df
Contents?: true
Size: 542 Bytes
Versions: 14
Compression:
Stored size: 542 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/spec' require File.dirname(__FILE__) + '/io_processor' require 'stringio' context "An IoProcessor" do setup do @processor = IoProcessor.new end specify "should raise nothing when the file is exactly 32 bytes" do lambda { @processor.process(StringIO.new("z"*32)) }.should_not_raise end specify "should raise an exception when the file length is less than 32 bytes" do lambda { @processor.process(StringIO.new("z"*31)) }.should_raise(DataTooShort) end end
Version data entries
14 entries across 14 versions & 1 rubygems