diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-12-10 08:24:19 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-12-11 07:27:35 +0100 |
commit | a76878a9f8783b7f10116eb9434f8421ca65280a (patch) | |
tree | cefe1fba8005dcb8d9ea4e23a7e4987eaa00acf6 /dev-ruby/serverengine | |
parent | dev-python/ipykernel: Remove old (diff) | |
download | gentoo-a76878a9f8783b7f10116eb9434f8421ca65280a.tar.gz gentoo-a76878a9f8783b7f10116eb9434f8421ca65280a.tar.bz2 gentoo-a76878a9f8783b7f10116eb9434f8421ca65280a.zip |
dev-ruby/serverengine: fix tests
Closes: https://bugs.gentoo.org/884773
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/serverengine')
-rw-r--r-- | dev-ruby/serverengine/serverengine-2.3.0.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-ruby/serverengine/serverengine-2.3.0.ebuild b/dev-ruby/serverengine/serverengine-2.3.0.ebuild index a93443157f38..5ca4aae1ebae 100644 --- a/dev-ruby/serverengine/serverengine-2.3.0.ebuild +++ b/dev-ruby/serverengine/serverengine-2.3.0.ebuild @@ -24,11 +24,15 @@ ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/timecop )" all_ruby_prepare() { sed -i -e '/rake/ s/~>/>=/' \ - -e '/rspec/ s/2.13.0/2.13/' \ + -e '/rspec/ s/2.13.0/3.0/' \ -e '/rake-compiler/ s:^:#:' serverengine.gemspec || die + + sed -i -e '/color_enabled/ s:^:#:' -e '1irequire "fileutils"' spec/spec_helper.rb || die + + sed -i -e '/raises SystemExit/askip "Exits rspec 3"' spec/multi_process_server_spec.rb || die } each_ruby_test() { # The specs spawn ruby processes with bundler support - ${RUBY} -S bundle exec rspec-2 spec || die + ${RUBY} -S bundle exec rspec-3 spec || die } |