[DRE-commits] [ruby-bacon] 03/05: Update tests for autopkgtest (Closes: #830061)

Youhei SASAKI uwabami-guest at moszumanska.debian.org
Sun Sep 3 16:05:28 UTC 2017


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

uwabami-guest pushed a commit to branch master
in repository ruby-bacon.

commit 84dd358708aa90e2d662cafaf861997a86519ddb
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Mon Sep 4 00:56:41 2017 +0900

    Update tests for autopkgtest (Closes: #830061)
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 .../patches/0001-Replace-relative-LOAD_PATH.patch  | 32 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/ruby-tests.rb                               |  2 +-
 3 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/debian/patches/0001-Replace-relative-LOAD_PATH.patch b/debian/patches/0001-Replace-relative-LOAD_PATH.patch
new file mode 100644
index 0000000..45d7094
--- /dev/null
+++ b/debian/patches/0001-Replace-relative-LOAD_PATH.patch
@@ -0,0 +1,32 @@
+From: Youhei SASAKI <uwabami at gfd-dennou.org>
+Date: Mon, 4 Sep 2017 00:52:20 +0900
+Subject: Replace relative LOAD_PATH
+
+Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
+---
+ test/spec_bacon.rb  | 4 +---
+ test/spec_should.rb | 2 +-
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb
+index c14a180..923eb70 100644
+--- a/test/spec_bacon.rb
++++ b/test/spec_bacon.rb
+@@ -1,6 +1,4 @@
+-$-w,w = nil, $-w
+-require File.expand_path('../../lib/bacon', __FILE__)
+-$-w = w
++require 'bacon'
+ 
+ # Hooray for meta-testing.
+ module MetaTests
+diff --git a/test/spec_should.rb b/test/spec_should.rb
+index 4986aa2..48ac459 100644
+--- a/test/spec_should.rb
++++ b/test/spec_should.rb
+@@ -1,4 +1,4 @@
+-require File.expand_path('../../lib/bacon', __FILE__)
++require 'bacon'
+ 
+ describe "#should shortcut for #it('should')" do
+   
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7101877
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Replace-relative-LOAD_PATH.patch
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 39e8162..7f81c03 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1 +1 @@
-exec(ENV['RUBY_TEST_BIN'], 'debian/ruby-bacon/usr/bin/bacon', '--automatic')
+exec(ENV['RUBY_TEST_BIN'], '-Ilib', 'bin/bacon', '--automatic')

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



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