Make wiki.page directory aware.

Remove scoped_page.
This commit is contained in:
bootstraponline
2012-07-31 23:22:17 -06:00
parent c1afa2a0e3
commit 2261cfabf3
2 changed files with 6 additions and 16 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ context "Wiki" do
index.add('Foobar/Elrond.md', 'Baz')
index.commit 'Add Foobar/Elrond.', [wiki.repo.commits.last], Grit::Actor.new('Tom Preston-Werner', 'tom@github.com')
assert_equal 'Rivendell/Elrond.md', wiki.scoped_page('Elrond', 'Rivendell').path
assert_equal 'Foobar/Elrond.md', wiki.scoped_page('Elrond', 'Foobar').path
assert_equal 'Rivendell/Elrond.md', wiki.page('Elrond', nil, 'Rivendell').path
assert_equal 'Foobar/Elrond.md', wiki.page('Elrond', nil, 'Foobar').path
ensure
FileUtils.rm_rf(@path)
end