[DRE-commits] [ruby-celluloid-io] 04/08: Patch: Rspec3 compatibility
Hleb Valoshka
tsfgnu-guest at moszumanska.debian.org
Fri Jun 26 16:09:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
tsfgnu-guest pushed a commit to branch master
in repository ruby-celluloid-io.
commit 539c968eac149f0d9680fa5733dff9a2d7aed283
Author: Hleb Valoshka <375gnu at gmail.com>
Date: Fri Jun 26 18:44:03 2015 +0300
Patch: Rspec3 compatibility
---
debian/patches/0002-Rspec3-compatibility.patch | 132 +++++++++++++++++++++++++
1 file changed, 132 insertions(+)
diff --git a/debian/patches/0002-Rspec3-compatibility.patch b/debian/patches/0002-Rspec3-compatibility.patch
new file mode 100644
index 0000000..fb36cba
--- /dev/null
+++ b/debian/patches/0002-Rspec3-compatibility.patch
@@ -0,0 +1,132 @@
+From: Hleb Valoshka <375gnu at gmail.com>
+Date: Fri, 26 Jun 2015 17:40:38 +0300
+Subject: Rspec3 compatibility
+
+---
+ spec/celluloid/io/reactor_spec.rb | 2 +-
+ spec/celluloid/io/ssl_server_spec.rb | 2 +-
+ spec/celluloid/io/tcp_server_spec.rb | 2 +-
+ spec/celluloid/io/tcp_socket_spec.rb | 6 +++---
+ spec/celluloid/io/udp_socket_spec.rb | 2 +-
+ spec/celluloid/io/unix_server_spec.rb | 2 +-
+ spec/celluloid/io/unix_socket_spec.rb | 4 ++--
+ 7 files changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/spec/celluloid/io/reactor_spec.rb b/spec/celluloid/io/reactor_spec.rb
+index 9c63990..f552683 100644
+--- a/spec/celluloid/io/reactor_spec.rb
++++ b/spec/celluloid/io/reactor_spec.rb
+@@ -29,7 +29,7 @@ describe Celluloid::IO::Reactor do
+ end
+ end
+
+- expect(handle).to be_true
++ expect(handle).to be_truthy
+
+ server.close
+ peer.close
+diff --git a/spec/celluloid/io/ssl_server_spec.rb b/spec/celluloid/io/ssl_server_spec.rb
+index 1a53f21..fda8712 100644
+--- a/spec/celluloid/io/ssl_server_spec.rb
++++ b/spec/celluloid/io/ssl_server_spec.rb
+@@ -25,7 +25,7 @@ describe Celluloid::IO::SSLServer do
+ context "inside Celluloid::IO" do
+ it "should be evented" do
+ with_ssl_server do |subject|
+- within_io_actor { Celluloid::IO.evented? }.should be_true
++ within_io_actor { Celluloid::IO.evented? }.should be_truthy
+ end
+ end
+
+diff --git a/spec/celluloid/io/tcp_server_spec.rb b/spec/celluloid/io/tcp_server_spec.rb
+index bfb3437..17a19d9 100644
+--- a/spec/celluloid/io/tcp_server_spec.rb
++++ b/spec/celluloid/io/tcp_server_spec.rb
+@@ -11,7 +11,7 @@ describe Celluloid::IO::TCPServer do
+ context "inside Celluloid::IO" do
+ it "should be evented" do
+ with_tcp_server do |subject|
+- within_io_actor { Celluloid::IO.evented? }.should be_true
++ within_io_actor { Celluloid::IO.evented? }.should be_truthy
+ end
+ end
+
+diff --git a/spec/celluloid/io/tcp_socket_spec.rb b/spec/celluloid/io/tcp_socket_spec.rb
+index e2e9ddf..a54f56e 100644
+--- a/spec/celluloid/io/tcp_socket_spec.rb
++++ b/spec/celluloid/io/tcp_socket_spec.rb
+@@ -23,7 +23,7 @@ describe Celluloid::IO::TCPSocket do
+ thread = Thread.new { server.accept }
+
+ value = within_io_actor { Celluloid::IO::TCPSocket.open(example_addr, example_port) { true } }
+- value.should be_true
++ value.should be_truthy
+
+ server.close
+ thread.terminate
+@@ -47,7 +47,7 @@ describe Celluloid::IO::TCPSocket do
+
+ it "should be evented" do
+ with_connected_sockets do |subject|
+- within_io_actor { Celluloid::IO.evented? }.should be_true
++ within_io_actor { Celluloid::IO.evented? }.should be_truthy
+ end
+ end
+
+@@ -124,7 +124,7 @@ describe Celluloid::IO::TCPSocket do
+ within_io_actor {
+ subject.read(1)
+ Celluloid.timeout(0.5) {
+- subject.eof?.should be_false
++ subject.eof?.should be_falsey
+ }
+ }
+ }.to raise_error(Celluloid::Task::TimeoutError)
+diff --git a/spec/celluloid/io/udp_socket_spec.rb b/spec/celluloid/io/udp_socket_spec.rb
+index d7d4769..78e17c5 100644
+--- a/spec/celluloid/io/udp_socket_spec.rb
++++ b/spec/celluloid/io/udp_socket_spec.rb
+@@ -12,7 +12,7 @@ describe Celluloid::IO::UDPSocket do
+
+ context "inside Celluloid::IO" do
+ it "should be evented" do
+- within_io_actor { Celluloid::IO.evented? }.should be_true
++ within_io_actor { Celluloid::IO.evented? }.should be_truthy
+ end
+
+ it "sends and receives packets" do
+diff --git a/spec/celluloid/io/unix_server_spec.rb b/spec/celluloid/io/unix_server_spec.rb
+index a0f9fdc..328972e 100644
+--- a/spec/celluloid/io/unix_server_spec.rb
++++ b/spec/celluloid/io/unix_server_spec.rb
+@@ -11,7 +11,7 @@ describe Celluloid::IO::UNIXServer do
+ context "inside Celluloid::IO" do
+ it "should be evented" do
+ with_unix_server do |subject|
+- within_io_actor { Celluloid::IO.evented? }.should be_true
++ within_io_actor { Celluloid::IO.evented? }.should be_truthy
+ end
+ end
+
+diff --git a/spec/celluloid/io/unix_socket_spec.rb b/spec/celluloid/io/unix_socket_spec.rb
+index 132d18d..f3e9e44 100644
+--- a/spec/celluloid/io/unix_socket_spec.rb
++++ b/spec/celluloid/io/unix_socket_spec.rb
+@@ -25,7 +25,7 @@ describe Celluloid::IO::UNIXSocket do
+
+ it "should be evented" do
+ with_connected_unix_sockets do |subject|
+- within_io_actor { Celluloid::IO.evented? }.should be_true
++ within_io_actor { Celluloid::IO.evented? }.should be_truthy
+ end
+ end
+
+@@ -111,7 +111,7 @@ describe Celluloid::IO::UNIXSocket do
+ within_io_actor {
+ subject.read(1)
+ Celluloid.timeout(0.5) {
+- subject.eof?.should be_false
++ subject.eof?.should be_falsey
+ }
+ }
+ }.to raise_error(Celluloid::Task::TimeoutError)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-celluloid-io.git
More information about the Pkg-ruby-extras-commits
mailing list