github.com/matthewdale/lab@v0.14.0/cmd/mr_create_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, `(ci) jobs with interleaved sleeps and prints
    19  
    20  I am the default merge request template for lab
    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  }