[packages/ruby-hashr] run tests

glen glen at pld-linux.org
Wed Jan 1 19:36:57 CET 2014


commit d50d62d73a78aeffd5c7c7ebc3e179a09de22f1d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 1 20:36:52 2014 +0200

    run tests

 ruby-hashr.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/ruby-hashr.spec b/ruby-hashr.spec
index 291eb12..9a4f7e2 100644
--- a/ruby-hashr.spec
+++ b/ruby-hashr.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_with	tests		# build without tests
+%bcond_without	tests		# build without tests
 
 %define	pkgname	hashr
 Summary:	Simple Hash extension to make working with nested hashes
@@ -14,6 +14,7 @@ Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
 URL:		http://github.com/svenfuchs/hashr
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	sed >= 4.0
 %if %{with tests}
 BuildRequires:	ruby-rake
 BuildRequires:	ruby-test_declarative >= 0.0.2
@@ -28,9 +29,15 @@ configuration) easier and less error-prone.
 %prep
 %setup -q -n %{pkgname}-%{version}
 
+sed -i '/require.*bundler/d' test/test_helper.rb
+
 %build
 %__gem_helper spec
 
+%if %{with tests}
+testrb -Ilib test/*_test.rb
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-hashr.git/commitdiff/d50d62d73a78aeffd5c7c7ebc3e179a09de22f1d



More information about the pld-cvs-commit mailing list