summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 21:36:17 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 21:36:17 +0000
commit71cfa6ea2d19ba6420845aab3dc0fc206709efde (patch)
tree10ed40eb5f55d365e46296024b136d384188df32 /test/rdoc
parent2f2071824952b3c341bcd8b1ad74e91e4677420f (diff)
fix file path for building at other than src dir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_rdoc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb
index 91fbe35f85..51aff52714 100644
--- a/test/rdoc/test_rdoc_rdoc.rb
+++ b/test/rdoc/test_rdoc_rdoc.rb
@@ -15,8 +15,8 @@ class TestRDocRDoc < MiniTest::Unit::TestCase
end
def test_gather_files
- assert_equal(%w[lib/rdoc.rb],
- @rdoc.gather_files(%w[lib/rdoc.rb lib/rdoc.rb]))
+ file = File.expand_path("../../../lib/rdoc.rb", __FILE__)
+ assert_equal([file], @rdoc.gather_files([file, file]))
end
def test_read_file_contents