Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add segfaulting test

  • Loading branch information...
commit ee05c2116454b3b5461f095640ebbec404a0080c 1 parent e80fcae
@vmg vmg authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 test/remote_test.rb
View
19 test/remote_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.