Remove temporary change in app test.

This commit is contained in:
Dustin DeYoung
2013-05-26 11:03:40 -04:00
parent 1147186b4c
commit eab612bdd0
+11 -11
View File
@@ -5,14 +5,14 @@ context "Frontend" do
include Rack::Test::Methods
setup do
@wikipath = cloned_testpath("examples/revert.git")
@wiki = Gollum::Wiki.new(@wikipath)
Precious::App.set(:gollum_path, @wikipath)
@path = cloned_testpath("examples/revert.git")
@wiki = Gollum::Wiki.new(@path)
Precious::App.set(:gollum_path, @path)
Precious::App.set(:wiki_options, {})
end
teardown do
FileUtils.rm_rf(@wikipath)
FileUtils.rm_rf(@path)
end
test "urls transform unicode" do
@@ -391,9 +391,9 @@ context "Frontend" do
end
test "previews content on the first page of an empty wiki" do
@wikipath = cloned_testpath("examples/empty.git")
@wiki = Gollum::Wiki.new(@wikipath)
Precious::App.set(:gollum_path, @wikipath)
@path = cloned_testpath("examples/empty.git")
@wiki = Gollum::Wiki.new(@path)
Precious::App.set(:gollum_path, @path)
Precious::App.set(:wiki_options, {})
post "/preview", :content => 'abc', :format => 'markdown'
@@ -513,14 +513,14 @@ context "Frontend with lotr" do
include Rack::Test::Methods
setup do
@wikipath = cloned_testpath("examples/lotr.git")
@wiki = Gollum::Wiki.new(@wikipath)
Precious::App.set(:gollum_path, @wikipath)
@path = cloned_testpath("examples/lotr.git")
@wiki = Gollum::Wiki.new(@path)
Precious::App.set(:gollum_path, @path)
Precious::App.set(:wiki_options, {})
end
teardown do
FileUtils.rm_rf(@wikipath)
FileUtils.rm_rf(@path)
end
# Here's the dir structure of lotr.git