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

Testing repository GetContent errors #113

Merged
merged 1 commit into from
Jul 2, 2014

Conversation

guilhermef
Copy link
Contributor

More tests for GetContent

}()
c.Assert(errCreate, gocheck.IsNil)
_, err := GetFileContents(repo, "MuchMissing", file)
c.Assert(err.Error(), gocheck.Equals, "Error when trying to obtain file README on ref MuchMissing of repository gandalf-test-repo (exit status 128).")
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, but if you want, you can use ErrorMatches instead Equals to verify an error message.

c.Assert(err, gocheck.ErrorMatches, "Error when trying to obtain file .* on ref MuchMissing of repository .*")

andrewsmedina added a commit that referenced this pull request Jul 2, 2014
Testing repository GetContent errors
@andrewsmedina andrewsmedina merged commit 00779d9 into tsuru:master Jul 2, 2014
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.

2 participants