Permalink
Browse files

set git user and email for testing

  • Loading branch information...
1 parent d5cc548 commit aa25c82aef29992a2391aac8ea7df2d3d7cf0a75 @helios committed Apr 29, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/test_bio-gem.rb
View
@@ -13,8 +13,10 @@ def basic_generated_files(project_name)
def setup
# check and create test directory
- FileUtils.rm_rf(TEST_DIR) if Dir.exist?(TEST_DIR)
- Dir.mkdir TEST_DIR
+ sh 'git config --global user.email "git@example.com"' if `git config user.email`.empty?
+ sh 'git config --global user.name "GitExample"' if `git config user.name`.empty?
+ FileUtils.rm_rf(TEST_DIR) if Dir.exist?(TEST_DIR)
+ Dir.mkdir TEST_DIR
end
def teardown

0 comments on commit aa25c82

Please sign in to comment.