File: test_helper.rb

package info (click to toggle)
ruby-html2haml 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: ruby: 1,577; makefile: 6
file content (23 lines) | stat: -rw-r--r-- 428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# require "rubygems"
if ENV["COVERAGE"]
  require "simplecov"
  SimpleCov.start
end

# require "bundler/setup"
require "minitest/autorun"
#require "minitest/unit"
require "html2haml"
require 'html2haml/html'
require 'html2haml/html/erb'

class Minitest::Test
  protected
  def render(text, options = {})
    Html2haml::HTML.new(text, options).render.rstrip
  end

  def render_erb(text)
    render(text, :erb => true)
  end
end