Commit dd703b3e2a5e7d4dc58f76fa65f4585825f6c3a5

Authored by Jacob Vosmaer
1 parent 2b816075

Remove duplicate code

spec/models/gollum_wiki_spec.rb
... ... @@ -2,12 +2,6 @@ require "spec_helper"
2 2  
3 3 describe GollumWiki do
4 4  
5   - def create_temp_repo(path)
6   - FileUtils.mkdir_p path
7   - command = "git init --quiet #{path};"
8   - system(command)
9   - end
10   -
11 5 def remove_temp_repo(path)
12 6 FileUtils.rm_rf path
13 7 end
... ...
spec/models/wiki_page_spec.rb
... ... @@ -2,12 +2,6 @@ require "spec_helper"
2 2  
3 3 describe WikiPage do
4 4  
5   - def create_temp_repo(path)
6   - FileUtils.mkdir_p path
7   - command = "git init --quiet #{path};"
8   - system(command)
9   - end
10   -
11 5 def remove_temp_repo(path)
12 6 FileUtils.rm_rf path
13 7 end
... ...