Skip to content

Commit 695e247

Browse files
committed
wip
1 parent 452887c commit 695e247

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-base/variables_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ def test_variable_hash_with_string_keys
130130
assert_variables(read_variables, 1,
131131
{:name => "hash", :hasChildren => true})
132132
send_ruby("v i hash")
133+
expected_name = RUBY_VERSION >= "1.9" ? CGI.escape_html("'a'") : CGI::escapeHTML("'a'")
133134
assert_variables(read_variables, 2,
134-
{:name => CGI.escape_html("'a'"), :value => "z", :type => "String"})
135+
{:name => expected_name, :value => "z", :type => "String"})
135136
send_cont
136137
end
137138

0 commit comments

Comments
 (0)