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.
33 lines
1021 B
33 lines
1021 B
6 years ago
|
From 2908365366792ac3ba010fa32bc3be2beaed451a Mon Sep 17 00:00:00 2001
|
||
|
From: Samuel Williams <samuel.williams@oriontransfer.co.nz>
|
||
|
Date: Sun, 16 Dec 2018 11:32:45 +1300
|
||
|
Subject: [PATCH] Use raw Pathname to fix Linux specs.
|
||
|
|
||
|
---
|
||
|
spec/lib/listen/adapter/linux_spec.rb | 12 +-----------
|
||
|
1 file changed, 1 insertions(+), 11 deletions(-)
|
||
|
|
||
|
diff --git a/spec/lib/listen/adapter/linux_spec.rb b/spec/lib/listen/adapter/linux_spec.rb
|
||
|
index d77f0c0..da48319 100644
|
||
|
--- a/spec/lib/listen/adapter/linux_spec.rb
|
||
|
+++ b/spec/lib/listen/adapter/linux_spec.rb
|
||
|
@@ -10,17 +10,7 @@
|
||
|
end
|
||
|
|
||
|
if linux?
|
||
|
- let(:dir1) do
|
||
|
- instance_double(
|
||
|
- Pathname,
|
||
|
- 'dir1',
|
||
|
- to_s: '/foo/dir1',
|
||
|
- cleanpath: real_dir1
|
||
|
- )
|
||
|
- end
|
||
|
-
|
||
|
- # just so cleanpath works in above double
|
||
|
- let(:real_dir1) { instance_double(Pathname, 'dir1', to_s: '/foo/dir1') }
|
||
|
+ let(:dir1) {Pathname.new("/foo/dir1")}
|
||
|
|
||
|
let(:config) { instance_double(Listen::Adapter::Config) }
|
||
|
let(:queue) { instance_double(Queue) }
|