.it('# maps buildpack names', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `Buildpack added. Next release on example will use hone/test. Run git push heroku master to create a new release using this buildpack. `) })
.it('# with one existing buildpack successfully overwrites an existing buildpack URL at index', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `Buildpack set. Next release on example will use https://github.com/heroku/heroku-buildpack-ruby. Run git push heroku master to create a new release using this buildpack. `) })
.it('# does not map buildpack s3 to names', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `=== example Buildpack URL https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz `) })
.it('# maps buildpack urns to names', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `=== example Buildpack URL heroku/ruby `) })
.it('# displays the buildpack URL', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `=== example Buildpack URL https://github.com/heroku/heroku-buildpack-ruby `) })
.it('# with no buildpacks sets the buildpack URL with index', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `Buildpack set. Next release on example will use https://github.com/heroku/heroku-buildpack-ruby. Run git push heroku master to create a new release using this buildpack. `) })
.it('# with two buildpacks successfully removes url', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `Buildpack removed. Next release on example will use https://github.com/heroku/heroku-buildpack-java. Run git push heroku master to create a new release using this buildpack. `) })
.it('# returns the buildpack registry name back', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `=== example Buildpack URLs 1. heroku/java 2. rust-lang/rust `) })
.it('# with one existing buildpack adds a buildpack URL to the end of the list', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `Buildpack added. Next release on example will use: 1. https://github.com/heroku/heroku-buildpack-java 2. https://github.com/heroku/heroku-buildpack-ruby Run git push heroku master to create a new release using these buildpacks. `) })
.it('# with two existing buildpacks successfully adds buildpack URL to the very end of list', ctx => { expect(ctx.stderr).to.equal('') expect(ctx.stdout).to.equal( `Buildpack set. Next release on example will use: 1. https://github.com/heroku/heroku-buildpack-java 2. https://github.com/heroku/heroku-buildpack-nodejs 3. https://github.com/heroku/heroku-buildpack-ruby Run git push heroku master to create a new release using these buildpacks. `) })