Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Close opened repositories.

  • Loading branch information...
commit 0f07fda11b39e3c056a4120d7654adcee81ea737 1 parent fc2276f
@arthurschreiber arthurschreiber authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 test/remote_test.rb
View
10 test/remote_test.rb
@@ -164,6 +164,13 @@ def setup
@remote = Rugged::Remote.lookup(@repo, 'origin')
end
+ def teardown
+ @repo.close
+ @remote_repo.close
+
+ super
+ end
+
def test_push_single_ref
result = @remote.push(["refs/heads/master", "refs/heads/master:refs/heads/foobar", "refs/heads/unit_test"])
assert_equal({}, result)
@@ -255,10 +262,11 @@ def setup
@path = Dir.mktmpdir 'dir'
@repo = Rugged::Repository.init_at(@path, false)
repo_dir = File.join(TEST_DIR, (File.join('fixtures', 'testrepo.git', '.')))
- @remote = Rugged::Remote.add(@repo, 'origin', "file://#{repo_dir}")
+ @remote = Rugged::Remote.add(@repo, 'origin', repo_dir)
end
def teardown
+ @repo.close
FileUtils.remove_entry_secure(@path)
end
Please sign in to comment.
Something went wrong with that request. Please try again.