Permalink
Browse files

Add segfaulting test

  • Loading branch information...
1 parent e80fcae commit ee05c2116454b3b5461f095640ebbec404a0080c @vmg vmg committed Nov 22, 2011
Showing with 19 additions and 0 deletions.
  1. +19 −0 test/remote_test.rb
View
@@ -0,0 +1,19 @@
+require File.expand_path "../test_helper", __FILE__
+
+context "Rugged::Tag tests" do
+ setup do
+ @path = File.dirname(__FILE__) + '/fixtures/testrepo.git/'
+ @repo = Rugged::Repository.new(@path)
+ end
+
+ test "test remote connection" do
+ remote = Rugged::Remote.new(@repo, "git://github.com/libgit2/libgit2.git")
+
+ remote.connect(:fetch) do |r|
+ assert r.connected?
+ end
+
+ assert (not remote.connected?)
+ end
+
+end

0 comments on commit ee05c21

Please sign in to comment.