Skip to content

Commit

Permalink
Add segfaulting test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Nov 22, 2011
1 parent e80fcae commit ee05c21
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 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

0 comments on commit ee05c21

Please sign in to comment.