Sha256: 9d768090603c1ec82680a1d137f80d6886fcddd9d1f3f166036bcb18f7a147e2
Contents?: true
Size: 441 Bytes
Versions: 20
Compression:
Stored size: 441 Bytes
Contents
module TestServer module SpecHelper module Html def pretty_print_page(page) xsl_path = File.expand_path('../pretty_print.xsl', __FILE__) xsl = Nokogiri::XSLT(File.read(xsl_path)) html = Nokogiri(page.source) xsl.apply_to(html).to_s end end end end # encoding: utf-8 RSpec.configure do |c| c.include TestServer::SpecHelper::Html c.before(:each) { cleanup_working_directory } end
Version data entries
20 entries across 20 versions & 1 rubygems