summaryrefslogtreecommitdiff
path: root/dev-ruby/nanotest/nanotest-0.9.4.1-r2.ebuild
blob: 463f215eb6d8a1d2c00bc7a4077062e8ce579b10 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
USE_RUBY="ruby31 ruby32 ruby33"

RUBY_FAKEGEM_EXTRADOC="README.md"

inherit ruby-fakegem

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

KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
SLOT="0"
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
}