Skip to content

Commit fee5ced

Browse files
committed
Fix requiring of Spring test helpers
The idea of putting these test helpers in the Spring gem was to enable separate watcher projects to use them like this. That changed with rails/spring@cfc0c5b. Since we’re running the tests under Bundler, against a git clone of the Spring repo (see Gemfile), so we can just reach straight into that. Closes #24
1 parent e9878a9 commit fee5ced

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
22

33
require "bundler/setup"
4-
require "spring/test"
4+
require File.dirname(Gem::Specification.find_by_name("spring").loaded_from) + "/test/support/test"
55
require "minitest/autorun"
66

77
if defined?(Celluloid)

test/unit_test.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require "helper"
2-
require "spring/test/watcher_test"
32
require "spring/watcher/listen"
43

54
class ListenWatcherTest < Spring::Test::WatcherTest

0 commit comments

Comments
 (0)