aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/erb/test_erb.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb
index c41ba25d7c..c0b82a1ba6 100644
--- a/test/erb/test_erb.rb
+++ b/test/erb/test_erb.rb
@@ -574,6 +574,7 @@ EOS
erb = @erb.new("<%= foo %>")
foo = 1
assert_raise(NameError) { erb.result_with_hash({}) }
+ assert_equal("1", erb.result_with_hash(foo: foo))
end
def test_result_with_hash_does_not_modify_caller_binding