[DRE-commits] [ruby-packetfu] 01/05: Create patch fixing tests with ruby2.3
Lucas Kanashiro
kanashiro.duarte at gmail.com
Mon Feb 29 19:42:42 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-packetfu.
commit 65c3ef8030d057fbf9ee7805292907a2dc41d605
Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Date: Mon Feb 29 15:07:31 2016 -0300
Create patch fixing tests with ruby2.3
---
debian/changelog | 7 +++++++
debian/patches/0007-fix-tests-with-ruby23.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 49af1bd..3a665e7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-packetfu (1.1.11-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Create patch fixing tests with ruby2.3 (Closes: #816254)
+
+ -- Lucas Kanashiro <kanashiro.duarte at gmail.com> Mon, 29 Feb 2016 16:20:45 -0300
+
ruby-packetfu (1.1.11-1) unstable; urgency=low
* New upstream version.
diff --git a/debian/patches/0007-fix-tests-with-ruby23.patch b/debian/patches/0007-fix-tests-with-ruby23.patch
new file mode 100644
index 0000000..84bc0a3
--- /dev/null
+++ b/debian/patches/0007-fix-tests-with-ruby23.patch
@@ -0,0 +1,18 @@
+Description: Fix tests with ruby2.3
+ For some reason this test start to fail with ruby2.3, the simplest solution
+ that I found was substitute quotation mark to slash.
+Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
+Last-Updated: 2016-02-29
+Bug: https://github.com/packetfu/packetfu/pull/111
+Forwarded: https://github.com/packetfu/packetfu/pull/111
+
+--- a/spec/packetfu_spec.rb
++++ b/spec/packetfu_spec.rb
+@@ -49,7 +49,7 @@ describe PacketFu, "protocol requires" d
+ PacketFu::EthPacket.should_not be_nil
+ PacketFu::IPPacket.should_not be_nil
+ PacketFu::TCPPacket.should_not be_nil
+- expect { PacketFu::FakePacket }.to raise_error(NameError, "uninitialized constant PacketFu::FakePacket")
++ expect { PacketFu::FakePacket }.to raise_error(NameError, /uninitialized constant PacketFu::FakePacket/)
+ end
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 7fba54f..c46554a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+0007-fix-tests-with-ruby23.patch
0005-Require-rspec-its.patch
0006-Replace-network_interface-by-Ruby-2.1-Socket.getifad.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-packetfu.git
More information about the Pkg-ruby-extras-commits
mailing list