summaryrefslogtreecommitdiff
path: root/dev-ruby/nanotest/nanotest-0.9.4.1-r2.ebuild
blob: 176b6409eb134b0e30949a54f0e6d7372b5dd9a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

USE_RUBY="ruby32 ruby33 ruby34 ruby40"

RUBY_FAKEGEM_EXTRADOC="README.md"

inherit ruby-fakegem

DESCRIPTION="Extremely mynymal test framework"
HOMEPAGE="https://github.com/mynyml/nanotest"
LICENSE="MIT"

SLOT="0"
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86"
IUSE="test"

ruby_add_bdepend "test? ( dev-ruby/minitest:5 )"

all_ruby_prepare() {
	sed -e 's/MiniTest::Unit::TestCase/Minitest::Test/' \
		-i test/test_helper.rb test/test_nanotest.rb || die
}

each_ruby_test() {
	${RUBY} -I.:lib test/test_nanotest.rb || die
}