4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
|
# File 'lib/awetestlib/regression/awetest_dsl.rb', line 4214
def validate
require 'fileutils'
html_file = 'tidy_this.html'
err_file = 'tidy_err.txt'
done_file = 'tidy_done.html'
puts "#{__method__}: #{Dir.pwd}"
html = File.new(html_file, 'w')
html.puts(@html)
html.close
cmd = "tidy -quiet -f #{err_file} -o #{done_file} #{html_file}"
out = `#{cmd}`
puts out
errs = File.open(err_file)
result = errs.read
errs.close
result
end
|