Add parenthesis to avoid syntax warnings.

This commit is contained in:
Emilio Tagua 2010-09-28 15:48:45 -03:00
parent 059d609a1a
commit 9027721b11
2 changed files with 2 additions and 2 deletions

@ -71,7 +71,7 @@ def protect_against_forgery?
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

@ -103,7 +103,7 @@ def test_tag_honors_html_safe_for_param_values
def test_skip_invalid_escaped_attributes
['&1;', '&#1dfa3;', '& #123;'].each do |escaped|
assert_equal %(<a href="#{escaped.gsub /&/, '&amp;'}" />), tag('a', :href => escaped)
assert_equal %(<a href="#{escaped.gsub(/&/, '&amp;')}" />), tag('a', :href => escaped)
end
end