app_test.go
changeset 21 555716349f64
parent 15 33bf01fc53d0
child 28 ab6185f7ed37
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app_test.go	Thu Apr 06 23:31:31 2017 +0200
@@ -0,0 +1,16 @@
+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")
+}