File: 0003-Fix-spec-test-loader-for-Debianize.patch

package info (click to toggle)
ruby-mpi 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 216 kB
  • ctags: 122
  • sloc: ansic: 703; ruby: 276; makefile: 3
file content (53 lines) | stat: -rw-r--r-- 1,579 bytes parent folder | download
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
From: Youhei SASAKI <uwabami@gfd-dennou.org>
Date: Wed, 9 Jul 2014 18:07:53 +0900
Subject: Fix spec/test loader for Debianize

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 spec/ruby-mpi_spec.rb |  3 ++-
 spec/spec_helper.rb   | 13 -------------
 test/test_utils.rb    |  2 --
 3 files changed, 2 insertions(+), 16 deletions(-)
 delete mode 100644 spec/spec_helper.rb

diff --git a/spec/ruby-mpi_spec.rb b/spec/ruby-mpi_spec.rb
index c194500..44ac524 100644
--- a/spec/ruby-mpi_spec.rb
+++ b/spec/ruby-mpi_spec.rb
@@ -1,4 +1,5 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require 'rspec'
+require 'mpi'
 
 describe "MPI" do
   before(:all) do
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
deleted file mode 100644
index 489f71d..0000000
--- a/spec/spec_helper.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'ext', 'mpi'))
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'rspec'
-require 'mpi'
-
-# Requires supporting files with custom matchers and macros, etc,
-# in ./support/ and its subdirectories.
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
-
-RSpec.configure do |config|
-  
-end
diff --git a/test/test_utils.rb b/test/test_utils.rb
index c8785d1..49c8b1c 100644
--- a/test/test_utils.rb
+++ b/test/test_utils.rb
@@ -1,6 +1,4 @@
 require "test/unit"
-
-$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
 require "mpi/utils"
 
 class TestMPIUtils < Test::Unit::TestCase