[DRE-commits] [ruby-twitter-text] 02/03: Make all tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Sat Mar 12 19:52:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-twitter-text.

commit 252fd6a4406dba4fe6e3c2822f3be1fb89eec108
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sun Mar 13 01:18:49 2016 +0530

    Make all tests run
---
 debian/control                     |  1 +
 debian/patches/3001-fix-path.patch | 11 +++++++++++
 debian/ruby-tests.rake             |  7 +++++++
 3 files changed, 19 insertions(+)

diff --git a/debian/control b/debian/control
index 05ed7a7..7a536f0 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Hideki Yamane <henrich at debian.org>,
            Pirate Praveen <praveen at debian.org>
 Build-Depends: debhelper (>= 9),
                gem2deb,
+               ruby-multi-json,
                ruby-nokogiri,
                ruby-simplecov,
                ruby-unf
diff --git a/debian/patches/3001-fix-path.patch b/debian/patches/3001-fix-path.patch
index c900b44..a859f8a 100644
--- a/debian/patches/3001-fix-path.patch
+++ b/debian/patches/3001-fix-path.patch
@@ -31,3 +31,14 @@ Last-Update: 2014-11-23
  
      # Space is more than %20, U+3000 for example is the full-width space used with Kanji. Provide a short-hand
      # to access both the list of characters and a pattern suitible for use with String#split
+--- a/test/conformance_test.rb
++++ b/test/conformance_test.rb
+@@ -62,7 +62,7 @@
+     element.attribute_nodes.map{|attr| [attr.name, attr.value]}.sort
+   end
+ 
+-  CONFORMANCE_DIR = ENV['CONFORMANCE_DIR'] || File.expand_path("../../../conformance", __FILE__)
++  CONFORMANCE_DIR = ENV['CONFORMANCE_DIR'] || File.expand_path("../twitter-text-conformance", __FILE__)
+ 
+   def self.def_conformance_test(file, test_type, &block)
+     yaml = YAML.load_file(File.join(CONFORMANCE_DIR, file))
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index cf1591e..8190931 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -3,3 +3,10 @@ require 'gem2deb/rake/spectask'
 Gem2Deb::Rake::RSpecTask.new do |spec|
   spec.pattern = './spec/**/*_spec.rb'
 end
+
+require 'gem2deb/rake/testtask'
+
+Gem2Deb::Rake::TestTask.new do |t|
+  t.libs << 'test'
+  t.test_files = FileList['test/*_test.rb']
+end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-twitter-text.git



More information about the Pkg-ruby-extras-commits mailing list