You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
978 B
28 lines
978 B
From 7b2c935c1156568eb5bca0dc2a3ff2f0ae6c7f9e Mon Sep 17 00:00:00 2001
|
|
From: Thiago Ribeiro <thiagitosouza@gmail.com>
|
|
Date: Thu, 3 Mar 2016 09:26:17 -0300
|
|
Subject: [PATCH] Fix listener_spec when running with ruby2.3
|
|
|
|
- This commit closes #367
|
|
---
|
|
spec/lib/listen/listener_spec.rb | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/spec/lib/listen/listener_spec.rb b/spec/lib/listen/listener_spec.rb
|
|
index ac60358..0fdace4 100644
|
|
--- a/spec/lib/listen/listener_spec.rb
|
|
+++ b/spec/lib/listen/listener_spec.rb
|
|
@@ -86,7 +86,11 @@
|
|
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|
|