Sha256: 161010d4a422445bef60c71df2757ce9d15fc1398ed2e19980e3943ab78eb1e7

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

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 "is able to connect to the remote" do
    remote = Rugged::Remote.new(@repo, "git://github.com/libgit2/libgit2.git")

    remote.connect(:fetch) do |r|
      assert r.connected?
    end

    assert !remote.connected?
  end

  test "can list remotes" do
    remotes = @repo.remotes
    assert remotes.kind_of? Enumerable
    assert_equal [ "libgit2" ], remotes.to_a
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rugged-0.17.0b1 test/remote_test.rb