}) }) Describe("StartAndWaitUntilReadyWithConfig", func() { Context("When using a custom redis-server executable", func() { It("runs the right command to start redis", func() { processController.RedisServerExecutablePath = "custom/path/to/redis" args := []string{ "configFilePath", "--pidfile", "pidFilePath", "--dir", "instanceDataDir", "--logfile", "logFilePath", } processController.StartAndWaitUntilReadyWithConfig(instance, args, time.Second*1) itStartsARedisProcess("custom/path/to/redis") }) }) It("runs the right command to start redis", func() { args := []string{ "configFilePath", "--pidfile", "pidFilePath", "--dir", "instanceDataDir", "--logfile", "logFilePath", } processController.StartAndWaitUntilReadyWithConfig(instance, args, time.Second*1) itStartsARedisProcess("redis-server") })