Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s/MiniTest/Minitest/ #95

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading