diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-09-02 23:51:27 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-09-02 23:51:27 +0000 |
commit | bde8be41fb3141e33dc86e24fa3fe6200cbb9e87 (patch) | |
tree | 5eebb5e24add6437c74547b46c5809397a694d61 /actionpack/test/template | |
parent | 2fc4be68a6b65074726bee493920040da0e6e04d (diff) | |
download | rails-bde8be41fb3141e33dc86e24fa3fe6200cbb9e87.tar.gz rails-bde8be41fb3141e33dc86e24fa3fe6200cbb9e87.tar.bz2 rails-bde8be41fb3141e33dc86e24fa3fe6200cbb9e87.zip |
Properly quote the arguments to visual_effect. Closes #7220 [jeremymcanally]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/scriptaculous_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/scriptaculous_helper_test.rb b/actionpack/test/template/scriptaculous_helper_test.rb index e40debc0f9..514ba9107e 100644 --- a/actionpack/test/template/scriptaculous_helper_test.rb +++ b/actionpack/test/template/scriptaculous_helper_test.rb @@ -28,6 +28,8 @@ class ScriptaculousHelperTest < Test::Unit::TestCase assert_equal "new Effect.Fade(\"fademe\",{duration:4.0});", visual_effect(:fade, "fademe", :duration => 4.0) assert_equal "new Effect.Shake(element,{});", visual_effect(:shake) assert_equal "new Effect.DropOut(\"dropme\",{queue:'end'});", visual_effect(:drop_out, 'dropme', :queue => :end) + assert_equal "new Effect.Highlight(\"status\",{endcolor:'#EEEEEE'});", visual_effect(:highlight, 'status', :endcolor => '#EEEEEE') + assert_equal "new Effect.Highlight(\"status\",{restorecolor:'#500000', startcolor:'#FEFEFE'});", visual_effect(:highlight, 'status', :restorecolor => '#500000', :startcolor => '#FEFEFE') # chop the queue params into a comma separated list beginning, ending = 'new Effect.DropOut("dropme",{queue:{', '}});' |