Sha256: b9a2f12a47ad743bb25959d6283d9f00ab6001d21fcd37066a45686d700072e6
Contents?: true
Size: 554 Bytes
Versions: 4
Compression:
Stored size: 554 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_error 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_error(DataTooShort) end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
riess-0.0.8 | vendor/rspec-0.8.2/examples/io_processor_spec.rb |
rspec-0.8.0 | examples/io_processor_spec.rb |
rspec-0.8.1 | examples/io_processor_spec.rb |
rspec-0.8.2 | examples/io_processor_spec.rb |