1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Description: don't test against listen
This patch disables testing against listen. spring seems to depend on listen
1.0, while we are already at listen 2.4+, so something might be going wrong
there.
.
Luckily listen is not the default backend.
Author: Antonio Terceiro <terceiro@debian.org>
--- ruby-spring-1.1.3.orig/Gemfile
+++ ruby-spring-1.1.3/Gemfile
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in spring.gemspec
gemspec
-
-gem 'listen', "~> 1.0", :require => false
--- ruby-spring-1.1.3.orig/test/unit/watcher_test.rb
+++ ruby-spring-1.1.3/test/unit/watcher_test.rb
@@ -5,7 +5,6 @@ require "timeout"
require "active_support/core_ext/numeric/time"
require "spring/watcher"
require "spring/watcher/polling"
-require "spring/watcher/listen"
module WatcherTests
LATENCY = 0.001
@@ -160,31 +159,6 @@ module WatcherTests
end
end
-class ListenWatcherTest < ActiveSupport::TestCase
- include WatcherTests
-
- def watcher_class
- Spring::Watcher::Listen
- end
-
- test "root directories" do
- begin
- other_dir_1 = File.realpath(Dir.mktmpdir)
- other_dir_2 = File.realpath(Dir.mktmpdir)
- File.write("#{other_dir_1}/foo", "foo")
- File.write("#{dir}/foo", "foo")
-
- watcher.add "#{other_dir_1}/foo"
- watcher.add other_dir_2
- watcher.add "#{dir}/foo"
-
- assert_equal [dir, other_dir_1, other_dir_2].sort, watcher.base_directories.sort
- ensure
- FileUtils.rmdir other_dir_1
- FileUtils.rmdir other_dir_2
- end
- end
-end
class PollingWatcherTest < ActiveSupport::TestCase
include WatcherTests
|