summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.corp.reactrix.com>2007-11-07 16:43:47 -0800
committerscott Chacon <schacon@agadorsparticus.corp.reactrix.com>2007-11-07 16:43:47 -0800
commit6c7d8b50b2091a0e5deb80e20260e24ad846b1fd (patch)
treea80dabbe05f3d1dff3ce262e6edf01ceb80fa0a4 /tests
parentb5d6b907b080992c2d0220eceb66f4ffa85207cd (diff)
downloadthird_party-ruby-git-6c7d8b50b2091a0e5deb80e20260e24ad846b1fd.tar.gz
third_party-ruby-git-6c7d8b50b2091a0e5deb80e20260e24ad846b1fd.tar.xz
third_party-ruby-git-6c7d8b50b2091a0e5deb80e20260e24ad846b1fd.zip
started test framework
Diffstat (limited to 'tests')
-rw-r--r--tests/all_tests.rb3
-rw-r--r--tests/test_helper.rb2
-rw-r--r--tests/test_init.rb12
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/all_tests.rb b/tests/all_tests.rb
new file mode 100644
index 0000000..0fc5f75
--- /dev/null
+++ b/tests/all_tests.rb
@@ -0,0 +1,3 @@
+Dir.chdir(File.dirname(__FILE__)) do
+ Dir.glob('**/test_*.rb') { |test_case| require test_case }
+end
diff --git a/tests/test_helper.rb b/tests/test_helper.rb
new file mode 100644
index 0000000..2216f60
--- /dev/null
+++ b/tests/test_helper.rb
@@ -0,0 +1,2 @@
+require 'test/unit'
+require File.dirname(__FILE__) + '/../lib/git'
diff --git a/tests/test_init.rb b/tests/test_init.rb
new file mode 100644
index 0000000..a8e93e9
--- /dev/null
+++ b/tests/test_init.rb
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+require File.dirname(__FILE__) + '/test_helper'
+
+class TestInit < Test::Unit::TestCase
+ def setup
+ end
+
+ def test_open
+ Git.open
+ end
+end