[DRE-commits] [ruby-em-synchrony] 03/16: Create patch to fix tests with ruby2.3 (Closes: #800029)
Lucas Kanashiro
kanashiro.duarte at gmail.com
Wed Mar 2 12:44:39 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-em-synchrony.
commit dcd8d91831dc3120bc4b365349d1f161659cf1ef
Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Date: Tue Mar 1 18:42:39 2016 -0300
Create patch to fix tests with ruby2.3 (Closes: #800029)
---
debian/changelog | 1 +
.../patches/fix-tests-with-new-rspec-syntax.patch | 44 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 46 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index acdd219..3dd21e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
ruby-em-synchrony (1.0.4-1) UNRELEASED; urgency=medium
* Imported Upstream version 1.0.4
+ * Create patch to fix tests with ruby2.3 (Closes: #800029)
-- Lucas Kanashiro <kanashiro.duarte at gmail.com> Tue, 01 Mar 2016 18:36:38 -0300
diff --git a/debian/patches/fix-tests-with-new-rspec-syntax.patch b/debian/patches/fix-tests-with-new-rspec-syntax.patch
new file mode 100644
index 0000000..de8b323
--- /dev/null
+++ b/debian/patches/fix-tests-with-new-rspec-syntax.patch
@@ -0,0 +1,44 @@
+Description: fix tests with ruby2.3
+ Use new syntax of rspec (be_truthy) and remove 'pending' that it is not
+ supported anymore.
+Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
+Last-Updated: 2016-03-01
+Forward: no
+
+--- a/spec/redis_spec.rb
++++ b/spec/redis_spec.rb
+@@ -5,7 +5,7 @@ describe EM::Protocols::Redis do
+ it "should yield until connection is ready" do
+ EventMachine.synchrony do
+ connection = EM::Protocols::Redis.connect
+- connection.connected.should be_true
++ connection.connected.should be_truthy
+
+ EventMachine.stop
+ end
+@@ -102,4 +102,4 @@ describe EM::Protocols::Redis do
+ EM.stop
+ end
+ end
+-end
+\ No newline at end of file
++end
+--- a/spec/remcached_spec.rb
++++ b/spec/remcached_spec.rb
+@@ -6,7 +6,7 @@ describe Memcached do
+ it "should yield until connection is ready" do
+ EventMachine.synchrony do
+ Memcached.connect %w(localhost)
+- Memcached.usable?.should be_true
++ Memcached.usable?.should be_truthy
+ EventMachine.stop
+ end
+ end
+@@ -29,7 +29,6 @@ describe Memcached do
+
+ it "should fire multi memcached requests" do
+ EventMachine.synchrony do
+- pending "patch mult-get"
+
+ Memcached.connect %w(localhost)
+ Memcached.multi_get([{:key => 'foo'},{:key => 'bar'}, {:key => 'test'}]) do |res|
diff --git a/debian/patches/series b/debian/patches/series
index 92117e8..14d56d0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+fix-tests-with-new-rspec-syntax.patch
disable-hiredis-tests.patch
disable-amqp.patch
disable-connection-pool-tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-em-synchrony.git
More information about the Pkg-ruby-extras-commits
mailing list