Permalink
Browse files

Proc.new instead of lambda.

  • Loading branch information...
1 parent e1942dd commit f34a78b3367b1dc7364b036746da67e53dd7d23d @bootstraponline bootstraponline committed Oct 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/helper_wiki.rb
View
@@ -3,7 +3,7 @@ def self.create p
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]) }
Gollum::Wiki.new(@path), @path, cleanup
end
end

0 comments on commit f34a78b

Please sign in to comment.