Skip to content

Commit

Permalink
fixes tests to match new styling
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Casey <ecasey@pivotal.io>
  • Loading branch information
ekcasey committed Apr 1, 2019
1 parent 3db5d2c commit 3cf9561
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
16 changes: 8 additions & 8 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ func testAcceptance(t *testing.T, when spec.G, it spec.S) {
h.AssertNotNil(t, err)
h.AssertContains(t, output, `Please select a default builder with:
pack set-default-builder [builder image]`)
h.AssertMatch(t, output, `Cloud Foundry:\s+cloudfoundry/cnb:bionic`)
h.AssertMatch(t, output, `Cloud Foundry:\s+cloudfoundry/cnb:cflinuxfs3`)
h.AssertMatch(t, output, `Heroku:\s+heroku/buildpacks`)
pack set-default-builder <builder image>`)
h.AssertMatch(t, output, `Cloud Foundry:\s+'cloudfoundry/cnb:bionic'`)
h.AssertMatch(t, output, `Cloud Foundry:\s+'cloudfoundry/cnb:cflinuxfs3'`)
h.AssertMatch(t, output, `Heroku:\s+'heroku/buildpacks'`)
})
})

Expand Down Expand Up @@ -528,10 +528,10 @@ func testAcceptance(t *testing.T, when spec.G, it spec.S) {
h.AssertNotNil(t, err)
h.AssertContains(t, output, `Please select a default builder with:
pack set-default-builder [builder image]`)
h.AssertMatch(t, output, `Cloud Foundry:\s+cloudfoundry/cnb:bionic`)
h.AssertMatch(t, output, `Cloud Foundry:\s+cloudfoundry/cnb:cflinuxfs3`)
h.AssertMatch(t, output, `Heroku:\s+heroku/buildpacks`)
pack set-default-builder <builder image>`)
h.AssertMatch(t, output, `Cloud Foundry:\s+'cloudfoundry/cnb:bionic'`)
h.AssertMatch(t, output, `Cloud Foundry:\s+'cloudfoundry/cnb:cflinuxfs3'`)
h.AssertMatch(t, output, `Heroku:\s+'heroku/buildpacks'`)
})
})
})
Expand Down
11 changes: 6 additions & 5 deletions commands/inspect_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ ERROR: failed to inspect image 'some/image': some local error

it("should print a different inspection message", func() {
h.AssertNil(t, command.Execute())
h.AssertContains(t, outBuf.String(), "Inspecting default builder: some/image")
h.AssertContains(t, outBuf.String(), "Inspecting default builder: 'some/image'")
})
})

it("displays builder information for local and remote", func() {
command.SetArgs([]string{"some/image"})
h.AssertNil(t, command.Execute())
h.AssertContains(t, outBuf.String(), "Inspecting builder: some/image")
h.AssertContains(t, outBuf.String(), "Inspecting builder: 'some/image'")
h.AssertContains(t, outBuf.String(), `
Remote
------
Expand Down Expand Up @@ -206,9 +206,10 @@ Detection Order:
h.AssertNotNil(t, command.Execute())
h.AssertContains(t, outBuf.String(), `Please select a default builder with:
pack set-default-builder [builder image]`)
h.AssertMatch(t, outBuf.String(), `Cloud Foundry:\s+cloudfoundry/cnb`)
h.AssertMatch(t, outBuf.String(), `Heroku:\s+heroku/buildpacks`)
pack set-default-builder <builder image>`)
h.AssertMatch(t, outBuf.String(), `Cloud Foundry:\s+'cloudfoundry/cnb:bionic'`)
h.AssertMatch(t, outBuf.String(), `Cloud Foundry:\s+'cloudfoundry/cnb:cflinuxfs3'`)
h.AssertMatch(t, outBuf.String(), `Heroku:\s+'heroku/buildpacks'`)
})
})
})
Expand Down

0 comments on commit 3cf9561

Please sign in to comment.