diff options
author | Corey Hulen <corey@hulen.com> | 2015-06-25 11:20:19 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-06-25 11:20:19 -0400 |
commit | 049a41f9beb3b55a4eb84d4730011b257aaf26b3 (patch) | |
tree | 7ea9f7eeaa753d8ceac1f955b6b9af061fe4d751 /api/post_test.go | |
parent | bfe8d13cd15d7e4ba7da76d3b202109d2a4b7847 (diff) | |
parent | 40b9fc5e398f8212feca10459b654230af872298 (diff) | |
download | chat-049a41f9beb3b55a4eb84d4730011b257aaf26b3.tar.gz chat-049a41f9beb3b55a4eb84d4730011b257aaf26b3.tar.bz2 chat-049a41f9beb3b55a4eb84d4730011b257aaf26b3.zip |
Merge pull request #27 from mattermost/mm-1240
fixes mm-1240 adds ability to turn valet feature on
Diffstat (limited to 'api/post_test.go')
-rw-r--r-- | api/post_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post_test.go b/api/post_test.go index b322a5017..03f70bff7 100644 --- a/api/post_test.go +++ b/api/post_test.go @@ -147,7 +147,7 @@ func TestCreateValetPost(t *testing.T) { channel2 := &model.Channel{DisplayName: "Test API Name", Name: "a" + model.NewId() + "a", Type: model.CHANNEL_OPEN, TeamId: team.Id} channel2 = Client.Must(Client.CreateChannel(channel2)).Data.(*model.Channel) - if utils.Cfg.TeamSettings.AllowValet { + if utils.Cfg.TeamSettings.AllowValetDefault { post1 := &model.Post{ChannelId: channel1.Id, Message: "#hashtag a" + model.NewId() + "a"} rpost1, err := Client.CreateValetPost(post1) if err != nil { |