[DRE-commits] [ruby-listen] 01/02: Add patch 0003-fix-listener-test-in-ruby2_3.patch

Thiago Ribeiro thiagovsk-guest at moszumanska.debian.org
Thu Mar 3 15:13:00 UTC 2016


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

thiagovsk-guest pushed a commit to branch master
in repository ruby-listen.

commit fa1659c159f8bb215e333410fb4ab443dc299a69
Author: Thiago Ribeiro <thiagitosouza at gmail.com>
Date:   Wed Mar 2 13:46:29 2016 -0300

    Add patch 0003-fix-listener-test-in-ruby2_3.patch
    
    - Fix listener_spec test in ruby 2.3
    - The new test works fine in ruby 2.2 too
---
 debian/patches/0003-fix-listener-test-in-ruby2_3.patch | 16 ++++++++++++++++
 debian/patches/series                                  |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/0003-fix-listener-test-in-ruby2_3.patch b/debian/patches/0003-fix-listener-test-in-ruby2_3.patch
new file mode 100644
index 0000000..b9ddc0e
--- /dev/null
+++ b/debian/patches/0003-fix-listener-test-in-ruby2_3.patch
@@ -0,0 +1,16 @@
+--- a/spec/lib/listen/listener_spec.rb
++++ b/spec/lib/listen/listener_spec.rb
+@@ -86,7 +86,12 @@
+     context 'with a block' do
+       let(:myblock) { instance_double(Proc) }
+       let(:block) { proc { myblock.call }  }
+-      subject { described_class.new('dir1', &block) }
++      subject do
++        described_class.new('dir1') do |*args|
++          myblock.call(*args)
++        end
++      end
++
+
+       it 'passes the block to the event processor' do
+         allow(Event::Config).to receive(:new) do |*_args, &some_block|
diff --git a/debian/patches/series b/debian/patches/series
index 5827be6..919c4e3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Remove-OSX-specific-dependency.patch
 0002-gemspec-skip-git-usage.patch
+0003-fix-listener-test-in-ruby2_3.patch

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



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