(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func TestCommand_link_noArgs(t *testing.T) { |
| 26 | StubCommandLineArgs("link") |
| 27 | |
| 28 | appDir, _ := homedir.Expand("~/my-test-puma-dev-application") |
| 29 | defer MakeDirectoryOrFail(t, appDir)() |
| 30 | |
| 31 | WithWorkingDirectory(appDir, func() { |
| 32 | actual := WithStdoutCaptured(func() { |
| 33 | if err := command(); err != nil { |
| 34 | assert.Fail(t, err.Error()) |
| 35 | } |
| 36 | }) |
| 37 | |
| 38 | expected := fmt.Sprintf("+ App 'my-test-puma-dev-application' created, linked to '%s'\n", appDir) |
| 39 | assert.Equal(t, expected, actual) |
| 40 | }) |
| 41 | |
| 42 | RemoveAppSymlinkOrFail(t, "my-test-puma-dev-application") |
| 43 | } |
| 44 | |
| 45 | func TestCommand_link_withNameOverride(t *testing.T) { |
| 46 | tmpCwd := "/tmp/puma-dev-example-command-link-noargs" |
nothing calls this directly
no test coverage detected