1.8.7 fixes

This commit is contained in:
Henrik
2012-09-05 00:51:28 +02:00
committed by bootstraponline
parent 749b5a5ff8
commit d406472882
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -1,4 +1,5 @@
require 'net/http'
require 'net/https' # ruby 1.8.7 fix, remove at upgrade
require 'uri'
require 'open-uri'
+1 -1
View File
@@ -47,6 +47,6 @@ context "gitcode" do
end
teardown do
@cleanup.()
@cleanup.call
end
end
+1 -1
View File
@@ -8,7 +8,7 @@ context "Markup" do
end
teardown do
@teardown.()
@teardown.call
end
test "formats page from Wiki#pages" do
+1 -1
View File
@@ -3,7 +3,7 @@ class WikiFactory
path = testpath "examples/test.git"
Grit::Repo.init_bare(path)
Gollum::Wiki.default_options = {:universal_toc => false}
cleanup = lambda { FileUtils.rm_r File.join(File.dirname(__FILE__), *%w[examples test.git]) }
cleanup = Proc.new { FileUtils.rm_r File.join(File.dirname(__FILE__), *%w[examples test.git]) }
wiki = Gollum::Wiki.new(path)
return wiki, path, cleanup
end