Sha256: 174c96b4e5d28d24d99ad2b67edecc18d01e45680bf678af25e1f77badd698fa
Contents?: true
Size: 420 Bytes
Versions: 9
Compression:
Stored size: 420 Bytes
Contents
shared_examples_for "a command that does not block" do it 'does not block if the command outputs a lot of data' do garbage_file = Tempfile.new("garbage") 10.times{ garbage_file.write("A" * 1024 * 1024) } Timeout.timeout(5) do output = subject.call("cat '#{garbage_file.path}'") $?.exitstatus.should == 0 output.length.should == 10 * 1024 * 1024 end garbage_file.close end end
Version data entries
9 entries across 9 versions & 2 rubygems