Exemple #1
0
      .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.
`)
      })
Exemple #2
0
      .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.
`)
      })
Exemple #3
0
    .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
`)
    })
Exemple #4
0
    .it('# maps buildpack urns to names', ctx => {
      expect(ctx.stderr).to.equal('')
      expect(ctx.stdout).to.equal(
        `=== example Buildpack URL
heroku/ruby
`)
    })
Exemple #5
0
    .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
`)
    })
Exemple #6
0
      .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.
`)
      })
Exemple #7
0
      .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.
`)
      })
Exemple #8
0
    .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
`)
    })
Exemple #9
0
      .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.
`)
      })
Exemple #10
0
      .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.
`)
      })