equal
deleted
inserted
replaced
1 package gondole |
1 package gondole |
2 |
2 |
3 import ( |
3 import ( |
4 "reflect" |
4 "github.com/stretchr/testify/assert" |
5 "testing" |
5 "reflect" |
6 "github.com/stretchr/testify/assert" |
6 "testing" |
7 ) |
7 ) |
8 |
8 |
9 func TestNewApp(t *testing.T) { |
9 func TestNewApp(t *testing.T) { |
10 g, err := NewApp("foo", "bar") |
10 g, err := NewApp("foo", "bar") |
11 assert.NoError(t, err, "no error") |
11 assert.NoError(t, err, "no error") |
12 assert.Equal(t, reflect.TypeOf(&Gondole{}), reflect.TypeOf(g), "should be Gondole") |
12 assert.Equal(t, reflect.TypeOf(&Gondole{}), reflect.TypeOf(g), "should be Gondole") |
13 |
13 |
14 assert.Equal(t, "foo", g.Name, "should be equal") |
14 assert.Equal(t, "foo", g.Name, "should be equal") |
15 assert.Equal(t, "bar", g.RedirectURI, "should be equal") |
15 assert.Equal(t, "bar", g.RedirectURI, "should be equal") |
16 } |
16 } |