Sha256: d10ebb4e925d77f8ada5aa6fa1b2bf6f961ee886bd5cfcd39be99e0789bd1131
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-0.7.5 | examples/io_processor_spec.rb |
rspec-0.7.5.1 | examples/io_processor_spec.rb |