gondole_test.go
author Mikael Berthe <mikael@lilotux.net>
Sun, 16 Apr 2017 02:12:38 +0200
changeset 127 96a7f2432d27
parent 120 579912e9d0ef
child 128 a5a00fad7a32
permissions -rw-r--r--
GetTimelines: Allow '#' as hashtag prefix

package gondole

import (
	"testing"

	"github.com/sendgrid/rest"
	"github.com/stretchr/testify/assert"
)

func TestPrepareRequest(t *testing.T) {
	g := &Client{
		Name:    "foo",
		ID:      "666",
		Secret:  "biiiip",
		APIBase: "http://example.com",
	}

	req := g.prepareRequest("bar", rest.Get, nil)
	assert.NotNil(t, req.Headers, "not nil")
}