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\";">.