diff options
author | Sam Stephenson <sam@37signals.com> | 2006-03-13 02:11:59 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2006-03-13 02:11:59 +0000 |
commit | 3589871de82c12123f62c80b4924d2696412065c (patch) | |
tree | 8f420e61f86e6860a63cb9bbcc812962954d359f /actionpack/test/controller | |
parent | 955583aed4668981ee32dadcdc7e3c35e83d3adf (diff) | |
download | rails-3589871de82c12123f62c80b4924d2696412065c.tar.gz rails-3589871de82c12123f62c80b4924d2696412065c.tar.bz2 rails-3589871de82c12123f62c80b4924d2696412065c.zip |
Added simple alert() notifications for RJS exceptions when config.action_view.debug_rjs = true. Set debug_rjs = true for the default development environment.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3856 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/new_render_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index 6fcaaf302d..94273cf4af 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -141,7 +141,7 @@ class MimeControllerTest < Test::Unit::TestCase @request.env["HTTP_ACCEPT"] = "text/javascript" get :using_defaults - assert_equal "$('body').visualEffect(\"highlight\");", @response.body + assert_equal '$("body").visualEffect("highlight");', @response.body @request.env["HTTP_ACCEPT"] = "application/xml" get :using_defaults diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb index 5bdb8ec7f8..961269da59 100644 --- a/actionpack/test/controller/new_render_test.rb +++ b/actionpack/test/controller/new_render_test.rb @@ -393,7 +393,7 @@ class NewRenderTest < Test::Unit::TestCase def test_enum_rjs_test get :enum_rjs_test assert_equal <<-EOS.strip, @response.body -$$('.product').each(function(value, index) { +$$(".product").each(function(value, index) { new Effect.Highlight(element,{}); new Effect.Highlight(value,{}); Sortable.create(value, {onUpdate:function(){new Ajax.Request('/test/order', {asynchronous:true, evalScripts:true, parameters:Sortable.serialize(value)})}}); |