Skip to content

Commit

Permalink
Reset the .monk config after each test.
Browse files Browse the repository at this point in the history
  • Loading branch information
djanowski committed Aug 18, 2009
1 parent b7c6d9b commit ead1b97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_helper.rb
Expand Up @@ -15,6 +15,10 @@ def root(*args)
File.join(ROOT, *args)
end

def setup
FileUtils.rm(File.join(ROOT, "test", "tmp", ".monk"))
end

def monk(args = nil)
sh("env MONK_HOME=#{File.join(ROOT, "test", "tmp")} ruby -rubygems #{root "bin/monk"} #{args}")
end
Expand Down

0 comments on commit ead1b97

Please sign in to comment.