Refactorings

This commit is contained in:
Gleb Sinyavsky 2015-11-20 13:42:26 +03:00
parent a1207f6391
commit 13a8bd025c
8 changed files with 1189 additions and 1199 deletions

View file

@ -1,7 +1,7 @@
package tgbotapi_test
import (
"github.com/syfaro/telegram-bot-api"
"github.com/zhulik/telegram-bot-api"
"log"
"os"
"testing"
@ -20,7 +20,8 @@ func TestMain(m *testing.M) {
func TestNewBotAPI_notoken(t *testing.T) {
_, err := tgbotapi.NewBotAPI("")
if err.Error() != tgbotapi.APIForbidden {
if err == nil {
log.Println(err.Error())
t.Fail()
}
}