Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/go_modules/github.com/urfave/cl…
Browse files Browse the repository at this point in the history
…i-1.22.14
  • Loading branch information
ocean authored Dec 27, 2023
2 parents 543dd7e + ac7e5a1 commit b635d61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ahoy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
)

func TestOverrideExample(t *testing.T) {
// Override a command with the same command from another imported command file.
expected := "Overrode you.\n"
actual, _ := appRun([]string{"ahoy", "-f", "testdata/override-base.ahoy.yml", "docker", "override-example"})
if expected != actual {
Expand Down Expand Up @@ -160,6 +161,7 @@ commands:
}

func TestGetConfig(t *testing.T) {
// Get a config file.
testFile, err := os.Create("test_getConfig.yml")

if err != nil {
Expand Down Expand Up @@ -209,7 +211,7 @@ func TestGetConfig(t *testing.T) {
}

func TestGetConfigPath(t *testing.T) {
// Passinng empty string.
// Passing an empty string.
pwd, _ := os.Getwd()
expected := filepath.Join(pwd, ".ahoy.yml")
actual, _ := getConfigPath("")
Expand All @@ -229,6 +231,7 @@ func TestGetConfigPath(t *testing.T) {
}

func TestGetConfigPathErrorOnBogusPath(t *testing.T) {
// Test getting a bogus config path.
_, err := getConfigPath("~/bogus/path")
if err == nil {
t.Error("getConfigPath did not fail when passed a bogus path.")
Expand Down

0 comments on commit b635d61

Please sign in to comment.