[DRE-commits] [ruby-zentest] 01/08: Create patch to fix tests with ruby2.3
Lucas Kanashiro
kanashiro.duarte at gmail.com
Tue Mar 1 14:42:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
kanashiro-guest pushed a commit to branch master
in repository ruby-zentest.
commit b31a5052fe96781e8e483bf5068bcc1d0a69a6cc
Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Date: Tue Mar 1 09:08:12 2016 -0300
Create patch to fix tests with ruby2.3
---
debian/changelog | 7 ++++++
debian/patches/0003-fix-tests-with-ruby23.patch | 33 +++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 41 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 062bfed..c051a1e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-zentest (4.11.0-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Create patch to fix tests with ruby2.3 (Closes: #816162)
+
+ -- Lucas Kanashiro <kanashiro.duarte at gmail.com> Tue, 01 Mar 2016 10:21:30 -0300
+
ruby-zentest (4.11.0-1) experimental; urgency=medium
* Team upload
diff --git a/debian/patches/0003-fix-tests-with-ruby23.patch b/debian/patches/0003-fix-tests-with-ruby23.patch
new file mode 100644
index 0000000..1c295c9
--- /dev/null
+++ b/debian/patches/0003-fix-tests-with-ruby23.patch
@@ -0,0 +1,33 @@
+Description: Fix tests with ruby2.3
+ This test use TrueClass and your public methods to generate a TestTrueClass.
+ From ruby2.2 to ruby2.3 have some changes in public methods, in ruby2.3 have
+ '===' (equals3) method and ruby2.2 do not have it. So the test is removed,
+ because it will fail in one of the ruby version at least.
+Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
+Last-Updated: 2016-03-01
+Forward: no
+Bug: https://github.com/seattlerb/zentest/issues/66
+
+--- a/test/test_zentest.rb
++++ b/test/test_zentest.rb
+@@ -553,20 +553,4 @@ assert_equal expected, util_testcase("So
+
+ assert_equal expected, util_testcase("MyClass8")
+ end
+-
+- def test_testcase9
+- skip "doesn't define to_s on TrueClass?!?" if maglev?
+-
+- # stupid YAML is breaking my tests. Enters via Test::Rails. order dependent.
+- if defined? YAML then
+- TrueClass.send :remove_method, :taguri, :taguri=, :to_yaml rescue nil
+- end
+-
+- pims = TrueClass.public_instance_methods(false)
+- TrueClass.send :remove_method, :inspect if pims.include? :inspect # 2.0 only
+-
+- expected = "#{HEADER}class TestTrueClass < Minitest::Test\n def test_and\n raise NotImplementedError, 'Need to write test_and'\n end\n\n def test_carat\n raise NotImplementedError, 'Need to write test_carat'\n end\n\n def test_or\n raise NotImplementedError, 'Need to write test_or'\n end\n\n def test_to_s\n raise NotImplementedError, 'Need to write test_to_s'\n end\nend\n\n# Number of errors detected: 4"
+-
+- assert_equal expected, util_testcase("TestTrueClass")
+- end
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 458da31..a19d029 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+0003-fix-tests-with-ruby23.patch
remove-require-rubygems.patch
0001-Expand-autodiscovery-to-autotest-discover-.rb.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-zentest.git
More information about the Pkg-ruby-extras-commits
mailing list