aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/prototype_helper_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-28 15:48:45 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-28 15:48:45 -0300
commit9027721b11436144e65bceb9e29ad8669b02582a (patch)
tree209941fcbb23d5256fd8e461db54bdc6338d35d6 /actionpack/test/template/prototype_helper_test.rb
parent059d609a1a59300faefdc2d4186bae13b30c9699 (diff)
downloadrails-9027721b11436144e65bceb9e29ad8669b02582a.tar.gz
rails-9027721b11436144e65bceb9e29ad8669b02582a.tar.bz2
rails-9027721b11436144e65bceb9e29ad8669b02582a.zip
Add parenthesis to avoid syntax warnings.
Diffstat (limited to 'actionpack/test/template/prototype_helper_test.rb')
-rw-r--r--actionpack/test/template/prototype_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb
index 036a44730c..a6aa848a00 100644
--- a/actionpack/test/template/prototype_helper_test.rb
+++ b/actionpack/test/template/prototype_helper_test.rb
@@ -71,7 +71,7 @@ class PrototypeHelperBaseTest < ActionView::TestCase
end
def create_generator
- block = Proc.new { |*args| yield *args if block_given? }
+ block = Proc.new { |*args| yield(*args) if block_given? }
JavaScriptGenerator.new self, &block
end
end