Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
def test_redirect_to assert_equal 'window.location.href = "http://www.example.com/welcome?place=Pune&state=MH";', @generator.redirect_to(:action => 'welcome', :place => "Pune", :state => "MH") end test_redirect_to(JavaScriptGeneratorTest) [./test/template/prototype_helper_test.rb:364:in `test_redirect_to' ./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `__send__' ./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run']: <"window.location.href = \"http://www.example.com/welcome?place=Pune&state=MH\";"> expected but was <"window.location.href = \"http://www.example.com/welcome\";">.
Pasted March 30, 2008 8:12AM EDT
by rubydiamond
Channel #rubyonrails on irc.freenode.com
Embed