Commit dd703b3e2a5e7d4dc58f76fa65f4585825f6c3a5
1 parent
2b816075
Exists in
spb-stable
and in
3 other branches
Remove duplicate code
Showing
2 changed files
with
0 additions
and
12 deletions
Show diff stats
spec/models/gollum_wiki_spec.rb
| @@ -2,12 +2,6 @@ require "spec_helper" | @@ -2,12 +2,6 @@ require "spec_helper" | ||
| 2 | 2 | ||
| 3 | describe GollumWiki do | 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 | def remove_temp_repo(path) | 5 | def remove_temp_repo(path) |
| 12 | FileUtils.rm_rf path | 6 | FileUtils.rm_rf path |
| 13 | end | 7 | end |
spec/models/wiki_page_spec.rb
| @@ -2,12 +2,6 @@ require "spec_helper" | @@ -2,12 +2,6 @@ require "spec_helper" | ||
| 2 | 2 | ||
| 3 | describe WikiPage do | 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 | def remove_temp_repo(path) | 5 | def remove_temp_repo(path) |
| 12 | FileUtils.rm_rf path | 6 | FileUtils.rm_rf path |
| 13 | end | 7 | end |