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

Version Path
test_server-0.5.2 spec/support/html.rb
test_server-0.5.1 spec/support/html.rb
test_server-0.5.0 spec/support/html.rb
test_server-0.4.1 spec/support/html.rb
test_server-0.4.0 spec/support/html.rb
test_server-0.3.7 spec/support/html.rb
test_server-0.3.6 spec/support/html.rb
test_server-0.3.5 spec/support/html.rb
test_server-0.3.4 spec/support/html.rb
test_server-0.3.2 spec/support/html.rb
test_server-0.3.1 spec/support/html.rb
test_server-0.2.4 spec/support/html.rb
test_server-0.2.3 spec/support/html.rb
test_server-0.2.2 spec/support/html.rb
test_server-0.2.1 spec/support/html.rb
test_server-0.2.0 spec/support/html.rb
test_server-0.1.2 spec/support/html.rb
test_server-0.1.1 spec/support/html.rb
test_server-0.1.0 spec/support/html.rb
test_server-0.0.11 spec/support/html.rb