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-- |
7 | 1 |
package gondole |
2 |
||
3 |
import ( |
|
21
555716349f64
Move App stuff into app.go.
Ollivier Robert <roberto@keltia.net>
parents:
15
diff
changeset
|
4 |
"testing" |
15 | 5 |
"github.com/stretchr/testify/assert" |
6 |
"reflect" |
|
7 | 7 |
) |
8 |
||
9 |
func TestNewApp(t *testing.T) { |
|
15 | 10 |
g, err := NewApp("foo", "bar") |
11 |
assert.NoError(t, err, "no error") |
|
12 |
assert.Equal(t, reflect.TypeOf(&Gondole{}), reflect.TypeOf(g), "should be Gondole") |
|
14 | 13 |
|
15 | 14 |
assert.Equal(t, "foo", g.Name, "should be equal") |
15 |
assert.Equal(t, "bar", g.RedirectURI, "should be equal") |
|
7 | 16 |
} |