Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

getContent integration testing #112

Merged
merged 4 commits into from
Jul 2, 2014
Merged

getContent integration testing #112

merged 4 commits into from
Jul 2, 2014

Conversation

guilhermef
Copy link
Contributor

Integration test for repository.GetFileContents

@guilhermef
Copy link
Contributor Author

func CreateTestRepository(tmp_path string, repo string, file string, content string) (func(), error) {
testPath := path.Join(tmp_path, repo+".git")
cleanup := func() {
exec.Command("rm", "-rf", testPath).Output()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that is better to use "os" package to remove and create dirs instead "exec": http://golang.org/pkg/os/#Remove

heynemann added a commit that referenced this pull request Jul 2, 2014
getContent integration testing
@heynemann heynemann merged commit 56e0193 into tsuru:master Jul 2, 2014
@andrewsmedina
Copy link
Contributor

@guilhermef thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants