about summary refs log tree commit homepage
path: root/test/test_watcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_watcher.rb')
-rw-r--r--test/test_watcher.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_watcher.rb b/test/test_watcher.rb
index 28ac49b..3cf667c 100644
--- a/test/test_watcher.rb
+++ b/test/test_watcher.rb
@@ -1,9 +1,10 @@
 # -*- encoding: binary -*-
+# frozen_string_literal: false
 require "test/unit"
-require "rack"
 require "raindrops"
 begin
   require 'aggregate'
+  require 'rack'
 rescue LoadError => e
   warn "W: #{e} skipping #{__FILE__}"
 end
@@ -183,4 +184,4 @@ class TestWatcher < Test::Unit::TestCase
     assert_equal queued_before, headers["X-Last-Peak-At"], "should not change"
     assert_equal start, headers["X-First-Peak-At"]
   end
-end if RUBY_PLATFORM =~ /linux/ && defined?(Aggregate)
+end if RUBY_PLATFORM =~ /linux/ && defined?(Aggregate) && defined?(Rack)