summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-05-27 09:19:27 +0200
committerHans de Graaff <graaff@gentoo.org>2018-05-27 09:19:48 +0200
commita6c617409db4a63aac10cd67fb386b0e5c935c8a (patch)
tree9c6d9251edd10a7dce8f647ad9d5ea278192e883 /dev-ruby/elasticsearch-transport
parentapp-office/libreoffice: Fix new intro.png location (diff)
downloadgentoo-a6c617409db4a63aac10cd67fb386b0e5c935c8a.tar.gz
gentoo-a6c617409db4a63aac10cd67fb386b0e5c935c8a.tar.bz2
gentoo-a6c617409db4a63aac10cd67fb386b0e5c935c8a.zip
dev-ruby/elasticsearch-transport: run unit tests
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'dev-ruby/elasticsearch-transport')
-rw-r--r--dev-ruby/elasticsearch-transport/elasticsearch-transport-5.0.5.ebuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/dev-ruby/elasticsearch-transport/elasticsearch-transport-5.0.5.ebuild b/dev-ruby/elasticsearch-transport/elasticsearch-transport-5.0.5.ebuild
index b3c5e1ac1790..e27df7cddebb 100644
--- a/dev-ruby/elasticsearch-transport/elasticsearch-transport-5.0.5.ebuild
+++ b/dev-ruby/elasticsearch-transport/elasticsearch-transport-5.0.5.ebuild
@@ -5,7 +5,9 @@ EAPI=6
USE_RUBY="ruby23 ruby24"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-RUBY_FAKEGEM_TASK_DOC=doc
+RUBY_FAKEGEM_RECIPE_DOC=rdoc
+
+RUBY_FAKEGEM_TASK_TEST="NOTURN=true test"
inherit ruby-fakegem
@@ -30,13 +32,11 @@ ruby_add_bdepend "
dev-ruby/mocha:1.0
dev-ruby/pry
dev-ruby/shoulda-context
+ dev-ruby/curb
+ dev-ruby/patron
)
"
-# Tests need additional modules (at least 'turn') packaged. Then someone
-# should look into running them and so on.
-RESTRICT="test"
-
RUBY_S=${MY_P}/${PN}
all_ruby_prepare() {
@@ -47,4 +47,8 @@ all_ruby_prepare() {
sed -e '/bundler/d' \
-e '/require.*cane/,/end/d' \
-i Rakefile || die
+
+ # Tweak test setup to only run unit tests since we don't have a live cluster
+ sed -i -e "s/RUBY_VERSION > '1.9'/false/" \
+ -e '/module Elasticsearch/,$ s:^:#:' test/test_helper.rb || die
}