Skip to content

Commit

Permalink
Merge pull request #95 from boutil/master
Browse files Browse the repository at this point in the history
s/MiniTest/Minitest/
  • Loading branch information
amatsuda authored Aug 29, 2024
2 parents 37f2279 + fbc3af7 commit 6754b36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/erb_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'test_helper'

class ErbTest < MiniTest::Unit::TestCase
class ErbTest < Minitest::Unit::TestCase
def test_erb
assert_equal '- foo = bar', render_erb('<% foo = bar %>')
assert_equal '- foo = bar', render_erb('<% foo = bar -%>')
Expand Down
2 changes: 1 addition & 1 deletion test/html2haml_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: UTF-8
require 'test_helper'

class Html2HamlTest < MiniTest::Unit::TestCase
class Html2HamlTest < Minitest::Unit::TestCase
def test_empty_render_should_remain_empty
assert_equal '', render('')
end
Expand Down
3 changes: 2 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

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

class MiniTest::Unit::TestCase
class Minitest::Unit::TestCase
protected
def render(text, options = {})
Html2haml::HTML.new(text, options).render.rstrip
Expand Down

0 comments on commit 6754b36

Please sign in to comment.