github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/integration/isolated/config_command_test.go (about) 1 package isolated 2 3 import ( 4 "strings" 5 6 "code.cloudfoundry.org/cli/integration/helpers" 7 . "github.com/onsi/ginkgo" 8 . "github.com/onsi/ginkgo/extensions/table" 9 . "github.com/onsi/gomega" 10 . "github.com/onsi/gomega/gexec" 11 ) 12 13 var _ = Describe("config command", func() { 14 DescribeTable("allows setting locale to", 15 func(locale string) { 16 session := helpers.CF("config", "--locale", locale) 17 Eventually(session).Should(Exit(0)) 18 19 underscored_locale := strings.Replace(locale, "-", "_", -1) 20 session = helpers.CF("config", "--locale", underscored_locale) 21 Eventually(session).Should(Exit(0)) 22 }, 23 24 Entry("Chinese (Simplified)", "zh-Hans"), 25 Entry("Chinese (Traditional)", "zh-Hant"), 26 Entry("English (United States)", "en-US"), 27 Entry("French", "fr-FR"), 28 Entry("German", "de-DE"), 29 Entry("Italian", "it-IT"), 30 Entry("Japanese", "ja-JP"), 31 Entry("Korean", "ko-KR"), 32 Entry("Portuguese (Brazil)", "pt-BR"), 33 Entry("Spanish", "es-ES"), 34 ) 35 })