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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
Description: Fix relative path for test_helper in require statements
As test/ is not in $LOAD_PATH, use "test/test_helper" in require statements
instead of just "test_helper".
Author: Cédric Boutillier <cedric.boutillier@gmail.com>
Forwarded: no
Index: ruby-introspection/test/instance_snapshot_test.rb
===================================================================
--- ruby-introspection.orig/test/instance_snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
+++ ruby-introspection/test/instance_snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
@@ -1,4 +1,4 @@
-require "test_helper"
+require "test/test_helper"
class InstanceSnapshotTest < Test::Unit::TestCase
@@ -119,4 +119,4 @@
end
end
-end
\ No newline at end of file
+end
Index: ruby-introspection/test/class_snapshot_test.rb
===================================================================
--- ruby-introspection.orig/test/class_snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
+++ ruby-introspection/test/class_snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
@@ -1,4 +1,4 @@
-require "test_helper"
+require "test/test_helper"
class ClassSnapshotTest < Test::Unit::TestCase
@@ -84,4 +84,4 @@
end
end
-end
\ No newline at end of file
+end
Index: ruby-introspection/test/module_snapshot_test.rb
===================================================================
--- ruby-introspection.orig/test/module_snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
+++ ruby-introspection/test/module_snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
@@ -1,4 +1,4 @@
-require "test_helper"
+require "test/test_helper"
class ModuleSnapshotTest < Test::Unit::TestCase
@@ -37,4 +37,4 @@
assert_method_exists(mod, superdupermod, :foo, visibility)
end
end
-end
\ No newline at end of file
+end
Index: ruby-introspection/test/snapshot_test.rb
===================================================================
--- ruby-introspection.orig/test/snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
+++ ruby-introspection/test/snapshot_test.rb 2011-12-30 16:14:51.000000000 +0100
@@ -1,4 +1,4 @@
-require "test_helper"
+require "test/test_helper"
require "blankslate"
class SnapshotTest < Test::Unit::TestCase
@@ -52,4 +52,4 @@
assert_nothing_raised { Snapshot.new(BlankSlate.new) }
end
-end
\ No newline at end of file
+end
|