Skip to content

Commit

Permalink
Proc.new instead of lambda.
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed Oct 2, 2012
1 parent e1942dd commit f34a78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/helper_wiki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.