Sha256: 20be5526171a9cca7778150b14694e4ce75098a62367b5556e6508f69bb4fc2a

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

package spec

import (
  "gopkg.in/jarcoal/httpmock.v1"
	"io/ioutil"
	"log"
	"testing"

  . "github.com/onsi/ginkgo"
  . "github.com/onsi/gomega"
)

func TestNet(t *testing.T) {
	log.SetOutput(ioutil.Discard)
	RegisterFailHandler(Fail)
	RunSpecs(t, "Net Suite")
}

var _ = BeforeSuite(func() {
	// block all HTTP requests
	httpmock.Activate()
})

var _ = BeforeEach(func() {
	// remove any mocks
	httpmock.Reset()
})

var _ = AfterSuite(func() {
	httpmock.DeactivateAndReset()
})

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grom_native-0.2.0 ext/net/spec/net_suite_test.go
grom_native-0.1.0 ext/net/spec/net_suite_test.go