Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test for explicit block arg destructuring

  • Loading branch information...
commit c78122e79e0b0b9bb60c34d988f4c3f2f701ae72 1 parent 76fd345
@presidentbeef authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/tests/test_alias_processor.rb
View
12 test/tests/test_alias_processor.rb
@@ -286,4 +286,16 @@ def test_block_arg_assignment
y + z
RUBY
end
+
+ def test_block_arg_destructing
+ assert_alias '1', <<-RUBY
+ y = 1
+
+ blah do |(x, y)|
+ y = 2
+ end
+
+ y
+ RUBY
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.