Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --path flag #53

Merged
merged 8 commits into from
Nov 21, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test that create bundle file w/ custom path
  • Loading branch information
ordepdev committed Nov 18, 2019
commit b650da7bfc26db5f90a87b3bed9009b7d52480f8
15 changes: 15 additions & 0 deletions corral/test/main.pony
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
use "ponytest"
use "files"
use "../vcs"
use "../bundle"
use "../util"

actor Main is TestList
new create(env: Env) =>
PonyTest(env, this)

fun tag tests(test: PonyTest) =>
test(_TestGitParseTags)
test(_TestCreateBundleInCustomPath)

class iso _TestCreateBundleInCustomPath is UnitTest
fun name(): String => "bundle/create-in-custom-path"

fun apply(h: TestHelper) ? =>
let log = Log(LvlFine, h.env.err, LevelLogFormatter)
let expected = FilePath(h.env.root as AmbientAuth, "tmp")?
match BundleFile.create_bundle(h.env, "tmp", log)
| let bundle: Bundle =>
h.assert_eq[String](expected.path, bundle.dir.path)
end

class iso _TestGitParseTags is UnitTest
fun name(): String => "git/parse-tags"
Expand Down