Skip to content

Commit 36353af

Browse files
committed
Merge pull request #417 from grosser/grosser/test
make ruby xxx_test.rb work and do not add anything to the load path
2 parents c7d06eb + d34bf85 commit 36353af

File tree

9 files changed

+7
-13
lines changed

9 files changed

+7
-13
lines changed

Rakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ require "rake/testtask"
33

44
namespace :test do
55
Rake::TestTask.new(:unit) do |t|
6-
t.libs << "test"
76
t.test_files = FileList["test/unit/**/*_test.rb"]
87
t.verbose = true
98
end
109

1110
Rake::TestTask.new(:acceptance) do |t|
12-
t.libs << "test"
1311
t.test_files = FileList["test/acceptance_test.rb"]
1412
t.verbose = true
1513
end

lib/spring/test/acceptance_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
require "io/wait"
42
require "timeout"
53
require "spring/sid"

test/acceptance_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "helper"
1+
require_relative "helper"
22

33
class AcceptanceTest < Spring::Test::AcceptanceTest
44
end

test/helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2-
31
require "bundler/setup"
42
require "minitest/autorun"
53

test/unit/client/help_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require 'helper'
1+
require_relative "../../helper"
22

3-
require "spring/client/command"
3+
require 'spring/client/command'
44
require 'spring/client/help'
55
require 'spring/client'
66

test/unit/client/version_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'helper'
1+
require_relative "../../helper"
22
require 'spring/client'
33

44
class VersionTest < ActiveSupport::TestCase

test/unit/commands_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "helper"
1+
require_relative "../helper"
22
require "spring/commands"
33

44
class CommandsTest < ActiveSupport::TestCase

test/unit/process_title_updater_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "helper"
1+
require_relative "../helper"
22
require "spring/process_title_updater"
33
require "active_support/time"
44

test/unit/watcher_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "helper"
1+
require_relative "../helper"
22
require "spring/test/watcher_test"
33
require "spring/watcher/polling"
44

0 commit comments

Comments
 (0)