[DRE-commits] [ruby-bogus] 04/06: Remove relative import from spec

Lucas Moura lucasmoura-guest at moszumanska.debian.org
Mon Mar 7 15:13:29 UTC 2016


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

lucasmoura-guest pushed a commit to branch master
in repository ruby-bogus.

commit 62262ddc9d15525dca8111f9d3b6135d85540255
Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>
Date:   Mon Mar 7 12:03:54 2016 -0300

    Remove relative import from spec
---
 debian/changelog                                   |  1 +
 .../remove_relative_import_from_tests.patch        | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index cae5668..7f7c872 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ruby-bogus (0.1.6-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release
   * Update clean_spec_helper.patch for the new upstream code
+  * Create patch to remove relative import in clean_ruby_spec.rb
 
  -- Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>  Mon, 07 Mar 2016 11:29:11 -0300
 
diff --git a/debian/patches/remove_relative_import_from_tests.patch b/debian/patches/remove_relative_import_from_tests.patch
new file mode 100644
index 0000000..9ca67fe
--- /dev/null
+++ b/debian/patches/remove_relative_import_from_tests.patch
@@ -0,0 +1,22 @@
+Description: Removing relative import from spec.
+ One of the tests was accessing the file bogus.rb using a relative import.
+ However, this approach would not work when running the test for autopkgtest.
+ Therefore, this patch updates the path were to find the necessary file.
+
+Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>
+Last-updated: 2016-03-07
+Forwarded: not-needed
+Bug: not-needed
+
+Index: ruby-bogus/spec/bogus/clean_ruby_spec.rb
+===================================================================
+--- ruby-bogus.orig/spec/bogus/clean_ruby_spec.rb	2016-03-07 11:57:26.272476407 -0300
++++ ruby-bogus/spec/bogus/clean_ruby_spec.rb	2016-03-07 11:57:49.444425521 -0300
+@@ -10,6 +10,6 @@
+   end
+ 
+   def warnings
+-    `ruby -w lib/bogus.rb 2>&1`.split("\n")
++    `ruby -w /usr/lib/ruby/#{RUBY_VERSION}/bogus.rb 2>&1`.split("\n")
+   end
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 4d1884a..3de98c1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+remove_relative_import_from_tests.patch
 require_instead_of_gem.patch
 clean_spec_helper.patch

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



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