aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2005-11-21 01:54:36 +0000
committerSam Stephenson <sam@37signals.com>2005-11-21 01:54:36 +0000
commitf212c88315a15922df408395ba3d4b85187019f5 (patch)
treea3de55c8741aad0d863e0d67644cf75d52355001 /actionpack/test/template
parenta0293c80f0ad06de4b80f50cd47868ff50aa7590 (diff)
downloadrails-f212c88315a15922df408395ba3d4b85187019f5.tar.gz
rails-f212c88315a15922df408395ba3d4b85187019f5.tar.bz2
rails-f212c88315a15922df408395ba3d4b85187019f5.zip
Pass multiple arguments to Element.show and Element.hide in JavaScriptGenerator instead of using iterators
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/prototype_helper_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb
index c15280dcb3..32292a7e18 100644
--- a/actionpack/test/template/prototype_helper_test.rb
+++ b/actionpack/test/template/prototype_helper_test.rb
@@ -179,16 +179,16 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase
end
def test_show
- assert_equal '["foo"].each(Element.show);',
+ assert_equal 'Element.show("foo");',
@generator.show('foo')
- assert_equal '["foo", "bar", "baz"].each(Element.show);',
+ assert_equal 'Element.show("foo", "bar", "baz");',
@generator.show('foo', 'bar', 'baz')
end
def test_hide
- assert_equal '["foo"].each(Element.hide);',
+ assert_equal 'Element.hide("foo");',
@generator.hide('foo')
- assert_equal '["foo", "bar", "baz"].each(Element.hide);',
+ assert_equal 'Element.hide("foo", "bar", "baz");',
@generator.hide('foo', 'bar', 'baz')
end