commit: a0727d833ee89020b6e35122727d9d48c4a36e0b Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Aug 13 08:19:49 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Aug 13 08:40:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0727d83
dev-ruby/timecop: fix tests Add missing dependency on activesupport. Avoid bundler in one test to avoid unneeded dependencies. Re-enable test that passes. Closes: https://bugs.gentoo.org/912212 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/timecop/timecop-0.9.7.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dev-ruby/timecop/timecop-0.9.7.ebuild b/dev-ruby/timecop/timecop-0.9.7.ebuild index 08c2499661a4..5c78acdec7fd 100644 --- a/dev-ruby/timecop/timecop-0.9.7.ebuild +++ b/dev-ruby/timecop/timecop-0.9.7.ebuild @@ -24,15 +24,13 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" IUSE="" -# Missing testdep activesupport -ruby_add_bdepend "test? ( dev-ruby/mocha )" +ruby_add_bdepend "test? ( dev-ruby/activesupport dev-ruby/mocha )" all_ruby_prepare() { - sed -i -e '/bundler/ s:^:#:' -e '/History.rdoc/d' Rakefile test/test_helper.rb || die + sed -e '/bundler/ s:^:#:' -e '/History.rdoc/d' \ + -i Rakefile test/test_helper.rb test/timecop_with_active_support_test.rb || die sed -i -e '/rubygems/ a\gem "test-unit"' \ -e '/minitest\/rg/ s:^:#:' -e '/pry/ s:^:#:' test/test_helper.rb || die - # FIXME after activesupport gained ruby22 support - rm test/time_stack_item_test.rb || die } each_ruby_test() {
