app_test.go
author Ollivier Robert <roberto@keltia.net>
Thu, 06 Apr 2017 23:31:31 +0200
changeset 21 555716349f64
parent 15 gondole_test.go@33bf01fc53d0
child 28 ab6185f7ed37
permissions -rw-r--r--
Move App stuff into app.go.

package gondole

import (
	"testing"
	"github.com/stretchr/testify/assert"
	"reflect"
)

func TestNewApp(t *testing.T) {
	g, err := NewApp("foo", "bar")
	assert.NoError(t, err, "no error")
	assert.Equal(t, reflect.TypeOf(&Gondole{}), reflect.TypeOf(g), "should be Gondole")

	assert.Equal(t, "foo", g.Name, "should be equal")
	assert.Equal(t, "bar", g.RedirectURI, "should be equal")
}