diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-08-13 10:19:49 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-08-13 10:40:37 +0200 |
commit | a0727d833ee89020b6e35122727d9d48c4a36e0b (patch) | |
tree | 1aa8acc1425149583a08adbe9bfb8e3ac8643e61 /dev-ruby/timecop | |
parent | dev-ruby/public_suffix: use newer mocha version (diff) | |
download | gentoo-a0727d833ee89020b6e35122727d9d48c4a36e0b.tar.gz gentoo-a0727d833ee89020b6e35122727d9d48c4a36e0b.tar.bz2 gentoo-a0727d833ee89020b6e35122727d9d48c4a36e0b.zip |
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@gentoo.org>
Diffstat (limited to 'dev-ruby/timecop')
-rw-r--r-- | dev-ruby/timecop/timecop-0.9.7.ebuild | 8 |
1 files 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() { |