diff -r 3379b2ff8f4c -r 555716349f64 app_test.go --- /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") +}