File: 0200_fix_path_in_require.patch

package info (click to toggle)
ruby-metaclass 0.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140 kB
  • sloc: ruby: 42; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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: 2011-12-29
--- a/test/object_methods_test.rb
+++ b/test/object_methods_test.rb
@@ -1,4 +1,4 @@
-require "test_helper"
+require "test/test_helper"
 
 class ObjectMethodsTest < Test::Unit::TestCase
 
@@ -28,4 +28,4 @@
     assert instance.__metaclass__.is_a?(Class)
   end
 
-end
\ No newline at end of file
+end