File: 0200_fix_path_in_require.patch

package info (click to toggle)
ruby-instantiator 0.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 152 kB
  • sloc: ruby: 269; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 907 bytes parent folder | download | duplicates (3)
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
Description: Fix path in the require statement of the tests.
 The test/ directory is not in $LOAD_PATH.
Author: Cédric Boutillier <cedric.boutillier@gmail.com>
Last-Update: 2012-01-01
--- a/test/instantiator_test.rb
+++ b/test/instantiator_test.rb
@@ -1,4 +1,4 @@
-require "test_helper"
+require "test/test_helper"
 require "instantiator"
 
 class InstantiatorTest < Test::Unit::TestCase
@@ -202,4 +202,4 @@
     assert_equal "Proc.instantiate is not yet supported", e.message
   end
 
-end
\ No newline at end of file
+end
--- a/test/method_invocation_sink_test.rb
+++ b/test/method_invocation_sink_test.rb
@@ -1,4 +1,4 @@
-require "test_helper"
+require "test/test_helper"
 require "instantiator"
 
 class MethodInvocationSinkTest < Test::Unit::TestCase
@@ -24,4 +24,4 @@
   def test_should_return_instance_of_hash
     assert_instance_of Hash, @sink.to_hash
   end
-end
\ No newline at end of file
+end