Cli tests

Opening this up for further discussion. Closes #450.
Faster to build, because it doesn't download ruby/node/...
On 29 Nov 2014 11:10, "Jonathan Rudenberg" <notifications@github.com> wrote:

> In test/test_cli.go:
>
> > +func formatKeyID(s string) string {
> > +	buf := make([]byte, 0, len(s)+((len(s)-2)/2))
> > +	for i := range s {
> > +		buf = append(buf, s[i])
> > +		if (i+1)%2 == 0 && i != len(s)-1 {
> > +			buf = append(buf, ':')
> > +		}
> > +	}
> > +	return string(buf)
> > +}
> > +
> > +func (s *CLISuite) TestKey(t *c.C) {
> > +	app := s.newGitRepo(t, "env-dir")
> > +	// setup
> > +	t.Assert(app.flynn("create"), Succeeds)
> > +	t.Assert(app.flynn("env", "set", "BUILDPACK_URL=https://github.com/kr/heroku-buildpack-inline"), Succeeds)
>
> Why this buildpack?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/flynn/flynn/pull/501/files#r21048013>.
>