github.com/ianfoo/lab@v0.9.5-0.20180123060006-5ed79f2ccfc7/cmd/mrCreate_test.go (about) 1 package cmd 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 ) 8 9 // MR Create is tested in cmd/mr_test.go 10 11 func Test_mrText(t *testing.T) { 12 t.Parallel() 13 text, err := mrText("master", "mrtest", "lab-testing", "origin") 14 if err != nil { 15 t.Log(text) 16 t.Fatal(err) 17 } 18 require.Contains(t, text, `Added additional commit for LastCommitMessage and meeting requirements for Log test (>1 commit) 19 20 I am the mr tmpl 21 # Requesting a merge into origin:master from lab-testing:mrtest 22 # 23 # Write a message for this merge request. The first block 24 # of text is the title and the rest is the description. 25 # 26 # Changes: 27 # 28 # 54fd49a (Zaq? Wiedmann`) 29 30 }