Skip to content

Commit e4a84e2

Browse files
author
Kevin Paulisse
committed
Separate these calls to avoid or troubleshoot ruby 2.4 error
1 parent 3f73978 commit e4a84e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/octocatalog-diff/tests/catalog/puppetmaster_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@
106106
# An extra 'unescape' is here because the facts are double escaped.
107107
# See https://docs.puppet.com/puppet/latest/http_api/http_catalog.html#parameters
108108
# and https://github.com/puppetlabs/puppet/pull/1818
109-
result = JSON.parse(CGI.unescape(@post_data['facts']))['values']
109+
data = CGI.unescape(@post_data['facts'])
110+
result = JSON.parse(data)['values']
110111
expect(result).to eq(answer)
111112
end
112113

0 commit comments

Comments
 (0)