Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
baci:~/sandbox/1-2-stable/actionpack mikel$ rake test (in /Users/mikel/sandbox/1-2-stable/actionpack) /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/controller/action_pack_assertions_test.rb" "test/controller/addresses_render_test.rb" "test/controller/assert_select_test.rb" "test/controller/base_test.rb" "test/controller/benchmark_test.rb" "test/controller/caching_test.rb" "test/controller/capture_test.rb" "test/controller/cgi_test.rb" "test/controller/components_test.rb" "test/controller/content_type_test.rb" "test/controller/cookie_test.rb" "test/controller/custom_handler_test.rb" "test/controller/deprecated_instance_variables_test.rb" "test/controller/deprecation/deprecated_base_methods_test.rb" "test/controller/filter_params_test.rb" "test/controller/filters_test.rb" "test/controller/flash_test.rb" "test/controller/fragment_store_setting_test.rb" "test/controller/helper_test.rb" "test/controller/integration_test.rb" "test/controller/layout_test.rb" "test/controller/mime_responds_test.rb" "test/controller/mime_type_test.rb" "test/controller/new_render_test.rb" "test/controller/raw_post_test.rb" "test/controller/redirect_test.rb" "test/controller/render_test.rb" "test/controller/request_test.rb" "test/controller/resources_test.rb" "test/controller/routing_test.rb" "test/controller/selector_test.rb" "test/controller/send_file_test.rb" "test/controller/session_management_test.rb" "test/controller/test_test.rb" "test/controller/url_rewriter_test.rb" "test/controller/verification_test.rb" "test/controller/webservice_test.rb" "test/template/active_record_helper_test.rb" "test/template/asset_tag_helper_test.rb" "test/template/benchmark_helper_test.rb" "test/template/compiled_templates_test.rb" "test/template/date_helper_test.rb" "test/template/deprecated_helper_test.rb" "test/template/deprecated_instance_variables_test.rb" "test/template/form_helper_test.rb" "test/template/form_options_helper_test.rb" "test/template/form_tag_helper_test.rb" "test/template/java_script_macros_helper_test.rb" "test/template/javascript_helper_test.rb" "test/template/number_helper_test.rb" "test/template/prototype_helper_test.rb" "test/template/scriptaculous_helper_test.rb" "test/template/tag_helper_test.rb" "test/template/text_helper_test.rb" "test/template/url_helper_test.rb" Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started .........................................................................FF.FFFFFFF..FF......FF..............................................................................................................................................................................................................................................................................................................................................................................................................................................................F...FF....F....FF....FF................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Finished in 12.633869 seconds. 1) Failure: test_assert_select_from_rjs_with_multiple_results(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:228:in `test_assert_select_from_rjs_with_multiple_results' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 2) Failure: test_assert_select_from_rjs_with_single_result(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:211:in `test_assert_select_from_rjs_with_single_result' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 3) Failure: test_assert_select_rjs_for_chained_replace(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:391:in `test_assert_select_rjs_for_chained_replace' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:390:in `test_assert_select_rjs_for_chained_replace' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 4) Failure: test_assert_select_rjs_for_nonpositioned_insert(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:419:in `test_assert_select_rjs_for_nonpositioned_insert' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:418:in `test_assert_select_rjs_for_nonpositioned_insert' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 5) Failure: test_assert_select_rjs_for_positioned_insert(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:438:in `test_assert_select_rjs_for_positioned_insert' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:437:in `test_assert_select_rjs_for_positioned_insert' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 6) Failure: test_assert_select_rjs_for_replace(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:363:in `test_assert_select_rjs_for_replace' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:362:in `test_assert_select_rjs_for_replace' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 7) Failure: test_assert_select_rjs_picks_up_all_statements(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:305:in `test_assert_select_rjs_picks_up_all_statements' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:304:in `test_assert_select_rjs_picks_up_all_statements' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 8) Failure: test_assert_select_rjs_with_id(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:340:in `test_assert_select_rjs_with_id' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:339:in `test_assert_select_rjs_with_id' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 9) Failure: test_assert_select_rjs_with_unicode(AssertSelectTest) [./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:281:in `assert_select' ./test/controller/assert_select_test.rb:325:in `test_assert_select_rjs_with_unicode' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:324:in `test_assert_select_rjs_with_unicode' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: Expected at least 1 elements, found 0. <false> is not true. 10) Failure: test_css_select_from_rjs_with_multiple_results(AssertSelectTest) [./test/controller/assert_select_test.rb:284:in `test_css_select_from_rjs_with_multiple_results' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <2> expected but was <0>. 11) Failure: test_css_select_from_rjs_with_single_result(AssertSelectTest) [./test/controller/assert_select_test.rb:272:in `test_css_select_from_rjs_with_single_result' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <2> expected but was <0>. 12) Failure: test_nested_assert_select_rjs_with_single_result(AssertSelectTest) [./test/controller/assert_select_test.rb:466:in `test_nested_assert_select_rjs_with_single_result' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:465:in `test_nested_assert_select_rjs_with_single_result' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <2> expected but was <0>. 13) Failure: test_nested_assert_select_rjs_with_two_results(AssertSelectTest) [./test/controller/assert_select_test.rb:480:in `test_nested_assert_select_rjs_with_two_results' ./test/controller/../../lib/action_controller/assertions/selector_assertions.rb:419:in `assert_select_rjs' ./test/controller/assert_select_test.rb:479:in `test_nested_assert_select_rjs_with_two_results' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <1> expected but was <0>. 14) Failure: test_insert_html_with_string(JavaScriptGeneratorTest) [./test/template/prototype_helper_test.rb:173:in `test_insert_html_with_string' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"new Insertion.Top(\"element\", \"<p>This is a test</p>\");"> expected but was <"new Insertion.Top(\"element\", \"\\074p\\076This is a test\\074/p\\076\");">. 15) Failure: test_replace_element_with_string(JavaScriptGeneratorTest) [./test/template/prototype_helper_test.rb:189:in `test_replace_element_with_string' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"Element.replace(\"element\", \"<div id=\\\"element\\\"><p>This is a test</p></div>\");"> expected but was <"Element.replace(\"element\", \"\\074div id=\\\"element\\\"\\076\\074p\\076This is a test\\074/p\\076\\074/div\\076\");">. 16) Failure: test_replace_html_with_string(JavaScriptGeneratorTest) [./test/template/prototype_helper_test.rb:184:in `test_replace_html_with_string' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"Element.update(\"element\", \"<p>This is a test</p>\");"> expected but was <"Element.update(\"element\", \"\\074p\\076This is a test\\074/p\\076\");">. 17) Failure: test_to_s(JavaScriptGeneratorTest) [./test/template/prototype_helper_test.rb:244:in `test_to_s' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"new Insertion.Top(\"element\", \"<p>This is a test</p>\");\nnew Insertion.Bottom(\"element\", \"<p>This is a test</p>\");\n[\"foo\", \"bar\"].each(Element.remove);\nElement.update(\"baz\", \"<p>This is a test</p>\");"> expected but was <"new Insertion.Top(\"element\", \"\\074p\\076This is a test\\074/p\\076\");\nnew Insertion.Bottom(\"element\", \"\\074p\\076This is a test\\074/p\\076\");\n[\"foo\", \"bar\"].each(Element.remove);\nElement.update(\"baz\", \"\\074p\\076This is a test\\074/p\\076\");">. 18) Failure: test_button_to_function_with_rjs_block(JavaScriptHelperTest) [./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:10:in `assert_dom_equal' ./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:6:in `assert_dom_equal' ./test/template/javascript_helper_test.rb:58:in `test_button_to_function_with_rjs_block' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"<input type=\"button\" value=\"Greet me!\" onclick=\"Element.update("header", "<h1>Greetings</h1>");;\" />"> expected to be == to <"<input type=\"button\" value=\"Greet me!\" onclick=\"Element.update("header", "\\074h1\\076Greetings\\074/h1\\076");;\" />">. 19) Failure: test_button_to_function_with_rjs_block_and_options(JavaScriptHelperTest) [./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:10:in `assert_dom_equal' ./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:6:in `assert_dom_equal' ./test/template/javascript_helper_test.rb:65:in `test_button_to_function_with_rjs_block_and_options' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"<input class=\"greeter\" type=\"button\" value=\"Greet me!\" onclick=\"Element.update("header", "<h1>Greetings</h1>");;\" />"> expected to be == to <"<input class=\"greeter\" type=\"button\" value=\"Greet me!\" onclick=\"Element.update("header", "\\074h1\\076Greetings\\074/h1\\076");;\" />">. 20) Failure: test_link_to_function_with_rjs_block(JavaScriptHelperTest) [./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:10:in `assert_dom_equal' ./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:6:in `assert_dom_equal' ./test/template/javascript_helper_test.rb:39:in `test_link_to_function_with_rjs_block' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"<a href=\"#\" onclick=\"Element.update("header", "<h1>Greetings</h1>");; return false;\">Greet me!</a>"> expected to be == to <"<a href=\"#\" onclick=\"Element.update("header", "\\074h1\\076Greetings\\074/h1\\076");; return false;\">Greet me!</a>">. 21) Failure: test_link_to_function_with_rjs_block_and_options(JavaScriptHelperTest) [./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:10:in `assert_dom_equal' ./test/controller/../../lib/action_controller/assertions/dom_assertions.rb:6:in `assert_dom_equal' ./test/template/javascript_helper_test.rb:46:in `test_link_to_function_with_rjs_block_and_options' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']: <"<a href=\"#\" class=\"updater\" onclick=\"Element.update("header", "<h1>Greetings</h1>");; return false;\">Greet me!</a>"> expected to be == to <"<a href=\"#\" class=\"updater\" onclick=\"Element.update("header", "\\074h1\\076Greetings\\074/h1\\076");; return false;\">Greet me!</a>">. 1220 tests, 6720 assertions, 21 failures, 0 errors /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/activerecord/active_record_assertions_test.rb" "test/activerecord/active_record_store_test.rb" "test/activerecord/pagination_test.rb" Attempting to load Active Record... success Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started ..................................... Finished in 0.469589 seconds. 37 tests, 122 assertions, 0 failures, 0 errors baci:~/sandbox/1-2-stable/actionpack mikel$
This paste will be private.
From the Design Piracy series on my blog: