github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/cf/commands/service/service_suite_test.go (about)

     1  package service_test
     2  
     3  import (
     4  	"github.com/liamawhite/cli-with-i18n/cf/i18n"
     5  	"github.com/liamawhite/cli-with-i18n/util/testhelpers/configuration"
     6  	. "github.com/onsi/ginkgo"
     7  	. "github.com/onsi/gomega"
     8  
     9  	"testing"
    10  )
    11  
    12  func TestService(t *testing.T) {
    13  	config := configuration.NewRepositoryWithDefaults()
    14  	i18n.T = i18n.Init(config)
    15  
    16  	RegisterFailHandler(Fail)
    17  	RunSpecs(t, "Service Suite")
    18  }
    19  
    20  type passingRequirement struct {
    21  	Name string
    22  }
    23  
    24  func (r passingRequirement) Execute() error {
    25  	return nil
    26  }