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 include Rack::Test::Methods
setup do setup do
@wikipath = cloned_testpath("examples/revert.git") @path = cloned_testpath("examples/revert.git")
@wiki = Gollum::Wiki.new(@wikipath) @wiki = Gollum::Wiki.new(@path)
Precious::App.set(:gollum_path, @wikipath) Precious::App.set(:gollum_path, @path)
Precious::App.set(:wiki_options, {}) Precious::App.set(:wiki_options, {})
end end
teardown do teardown do
FileUtils.rm_rf(@wikipath) FileUtils.rm_rf(@path)
end end
test "urls transform unicode" do test "urls transform unicode" do
@@ -391,9 +391,9 @@ context "Frontend" do
end end
test "previews content on the first page of an empty wiki" do test "previews content on the first page of an empty wiki" do
@wikipath = cloned_testpath("examples/empty.git") @path = cloned_testpath("examples/empty.git")
@wiki = Gollum::Wiki.new(@wikipath) @wiki = Gollum::Wiki.new(@path)
Precious::App.set(:gollum_path, @wikipath) Precious::App.set(:gollum_path, @path)
Precious::App.set(:wiki_options, {}) Precious::App.set(:wiki_options, {})
post "/preview", :content => 'abc', :format => 'markdown' post "/preview", :content => 'abc', :format => 'markdown'
@@ -513,14 +513,14 @@ context "Frontend with lotr" do
include Rack::Test::Methods include Rack::Test::Methods
setup do setup do
@wikipath = cloned_testpath("examples/lotr.git") @path = cloned_testpath("examples/lotr.git")
@wiki = Gollum::Wiki.new(@wikipath) @wiki = Gollum::Wiki.new(@path)
Precious::App.set(:gollum_path, @wikipath) Precious::App.set(:gollum_path, @path)
Precious::App.set(:wiki_options, {}) Precious::App.set(:wiki_options, {})
end end
teardown do teardown do
FileUtils.rm_rf(@wikipath) FileUtils.rm_rf(@path)
end end
# Here's the dir structure of lotr.git # Here's the dir structure of lotr.git