Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## normal MRI gauss:rubyspec brian$ ruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb ........................ Finished in 0.008407 seconds 1 file, 24 examples, 59 expectations, 0 failures, 0 errors ## --no-ruby_bug on MRI gauss:rubyspec brian$ ruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb --no-ruby_bug ............FF.....FF.....FF...... 1) StringIO#reopen when passed [Object, Object] resets self's position to 0 FAILED Expected 5 to have same value and type as 0 ./library/stringio/reopen_spec.rb:117 ./library/stringio/reopen_spec.rb:110:in `all?' ./library/stringio/reopen_spec.rb:61 ../mspec/bin/mspec-run:8 2) StringIO#reopen when passed [Object, Object] resets self's line number to 0 FAILED Expected 1 to have same value and type as 0 ./library/stringio/reopen_spec.rb:123 ./library/stringio/reopen_spec.rb:61 ../mspec/bin/mspec-run:8 3) StringIO#reopen when passed [String] resets self's position to 0 FAILED Expected 5 to have same value and type as 0 ./library/stringio/reopen_spec.rb:175 ./library/stringio/reopen_spec.rb:140:in `all?' ./library/stringio/reopen_spec.rb:149 ../mspec/bin/mspec-run:8 4) StringIO#reopen when passed [String] resets self's line number to 0 FAILED Expected 1 to have same value and type as 0 ./library/stringio/reopen_spec.rb:181 ./library/stringio/reopen_spec.rb:149 ../mspec/bin/mspec-run:8 5) StringIO#reopen when passed no arguments resets self's position to 0 FAILED Expected 5 to have same value and type as 0 ./library/stringio/reopen_spec.rb:231 ./library/stringio/reopen_spec.rb:215 ../mspec/bin/mspec-run:8 6) StringIO#reopen when passed no arguments resets self's line number to 0 FAILED Expected 1 to have same value and type as 0 ./library/stringio/reopen_spec.rb:237 ./library/stringio/reopen_spec.rb:215 ../mspec/bin/mspec-run:8 Finished in 0.011930 seconds 1 file, 34 examples, 76 expectations, 6 failures, 0 errors ## --report on MRI gauss:rubyspec brian$ ruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb --report ........................ Finished in 0.008419 seconds 1 file, 24 examples, 59 expectations, 0 failures, 0 errors 4 Specs guarded with: ruby_bug #, 1.8.6.114: StringIO#reopen reopens a stream when given a String argument StringIO#reopen reopens a stream in append mode when flagged as such StringIO#reopen reopens and truncate when reopened in write mode StringIO#reopen truncates the given string, not a copy 6 Specs guarded with: ruby_bug #, 1.8.7: StringIO#reopen when passed [Object, Object] resets self's position to 0 StringIO#reopen when passed [Object, Object] resets self's line number to 0 StringIO#reopen when passed [String] resets self's position to 0 StringIO#reopen when passed [String] resets self's line number to 0 StringIO#reopen when passed no arguments resets self's position to 0 StringIO#reopen when passed no arguments resets self's line number to 0 ## --report on JRuby gauss:rubyspec brian$ jruby ../mspec/bin/mspec-run library/stringio/reopen_spec.rb --report .................................. Finished in 0.200502 seconds 1 file, 34 examples, 76 expectations, 0 failures, 0 errors
This paste will be private.
From the Design Piracy series on my blog: