From a0727d833ee89020b6e35122727d9d48c4a36e0b Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 13 Aug 2023 10:19:49 +0200 Subject: 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 --- dev-ruby/timecop/timecop-0.9.7.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'dev-ruby/timecop') 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() { -- cgit v1.2.3-65-gdbad