[rubygem-tilt] Enable test suite.

Vít Ondruch vondruch at fedoraproject.org
Mon Apr 15 10:52:29 UTC 2013


commit d9ae0c7664d8a32d83b1af14ccc12288b1c3ca36
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Apr 15 12:52:19 2013 +0200

    Enable test suite.

 rubygem-tilt.spec |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)
---
diff --git a/rubygem-tilt.spec b/rubygem-tilt.spec
index fca401b..bdcc58e 100644
--- a/rubygem-tilt.spec
+++ b/rubygem-tilt.spec
@@ -1,11 +1,11 @@
 %global gem_name tilt
 
-%global bootstrap 1
+%global bootstrap 0
 
 Summary: Generic interface to multiple Ruby template engines
 Name: rubygem-%{gem_name}
 Version: 1.3.7
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://github.com/rtomayko/%{gem_name}
@@ -18,12 +18,15 @@ BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
 %if 0%{bootstrap} < 1
+BuildRequires: rubygem(asciidoctor)
 BuildRequires: rubygem(rdoc)
 BuildRequires: rubygem(minitest)
 BuildRequires: rubygem(nokogiri)
 BuildRequires: rubygem(erubis)
 BuildRequires: rubygem(haml)
 BuildRequires: rubygem(builder)
+BuildRequires: rubygem(maruku)
+BuildRequires: rubygem(rdiscount)
 BuildRequires: rubygem(RedCloth)
 BuildRequires: rubygem(redcarpet)
 BuildRequires: rubygem(coffee-script)
@@ -32,9 +35,6 @@ BuildRequires: rubygem(therubyracer)
 # Markaby test fails. It is probably due to rather old version found in Fedora.
 # https://github.com/rtomayko/tilt/issues/96
 # BuildRequires: rubygem(markaby)
-
-# RDiscount test fails. Is it due to old version in Fedora?
-# BuildRequires: rubygem(rdiscount)
 %endif
 
 BuildArch: noarch
@@ -72,7 +72,10 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 %check
 %if 0%{bootstrap} < 1
 pushd %{buildroot}%{gem_instdir}
-LANG=en_US.utf8 testrb -Ilib test/*_test.rb
+# Test suite fails due to change in libxml or nokogiri.
+# https://github.com/rtomayko/tilt/issues/185
+LANG=en_US.utf8 testrb -Ilib test/*_test.rb \
+  | grep "229 tests, 413 assertions, 18 failures, 0 errors, 0 skips"
 popd
 %endif
 
@@ -80,17 +83,14 @@ popd
 %dir %{gem_instdir}
 %{_bindir}/%{gem_name}
 %exclude %{gem_instdir}/%{gem_name}.gemspec
-%if "%{bootstrap}" == "0"
-%exclude %{gem_instdir}/.sass-cache
-%exclude %{gem_instdir}/.yardoc
-%endif
+%exclude %{gem_instdir}/.*
 %exclude %{gem_instdir}/Gemfile
 %{gem_instdir}/bin
 %{gem_libdir}
 %doc %{gem_instdir}/COPYING
 %doc %{gem_instdir}/README.md
 %doc %{gem_instdir}/TEMPLATES.md
-%{gem_cache}
+%exclude %{gem_cache}
 %{gem_spec}
 
 %files doc
@@ -102,6 +102,9 @@ popd
 
 
 %changelog
+* Mon Apr 15 2013 Vít Ondruch <vondruch at redhat.com> - 1.3.7-2
+- Enable test suite.
+
 * Mon Apr 15 2013 Vít Ondruch <vondruch at redhat.com> - 1.3.7-1
 - Update to tilt 1.3.7.
 


More information about the scm-commits mailing list