Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set git user and email for testing

  • Loading branch information...
commit aa25c82aef29992a2391aac8ea7df2d3d7cf0a75 1 parent d5cc548
@helios authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/test_bio-gem.rb
View
6 test/test_bio-gem.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.