features/step_definitions/json_steps.rb in berkshelf-6.0.1 vs features/step_definitions/json_steps.rb in berkshelf-6.1.0
- old
+ new
@@ -14,11 +14,11 @@
end
end
# Pending Ridley allowing newer Faraday and Celluloid.
def clean_json_output(output)
- output.gsub(/^.+warning: constant ::Fixnum is deprecated$/, '') \
- .gsub(/^.*forwarding to private method Celluloid::PoolManager#url_prefix$/, '')
+ output.gsub(/^.+warning: constant ::Fixnum is deprecated$/, "") \
+ .gsub(/^.*forwarding to private method Celluloid::PoolManager#url_prefix$/, "")
end
Then /^the output should contain JSON:$/ do |data|
parsed = ERB.new(data).result
target = JSON.pretty_generate(JSON.parse(parsed).sort_by_key)