From f54936467101bb08bbdf7f3d9c341134c06b83c3 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 16 Dec 2015 15:49:04 -0500 Subject: Updating go dependancies --- .../anachronistic/apns/client_mock_test.go | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 Godeps/_workspace/src/github.com/anachronistic/apns/client_mock_test.go (limited to 'Godeps/_workspace/src/github.com/anachronistic/apns/client_mock_test.go') diff --git a/Godeps/_workspace/src/github.com/anachronistic/apns/client_mock_test.go b/Godeps/_workspace/src/github.com/anachronistic/apns/client_mock_test.go deleted file mode 100644 index 86e997b5a..000000000 --- a/Godeps/_workspace/src/github.com/anachronistic/apns/client_mock_test.go +++ /dev/null @@ -1,24 +0,0 @@ -package apns - -import ( - "errors" - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestMockClientConnectAndWrite(t *testing.T) { - m := &MockClient{} - m.On("ConnectAndWrite", (*PushNotificationResponse)(nil), []byte(nil)).Return(nil) - assert.Nil(t, m.ConnectAndWrite(nil, nil)) - m.On("ConnectAndWrite", &PushNotificationResponse{}, []byte{}).Return(errors.New("test")) - assert.Equal(t, errors.New("test"), m.ConnectAndWrite(&PushNotificationResponse{}, []byte{})) -} - -func TestMockClientSend(t *testing.T) { - m := &MockClient{} - m.On("Send", (*PushNotification)(nil)).Return(nil) - assert.Nil(t, m.Send(nil)) - m.On("Send", &PushNotification{}).Return(&PushNotificationResponse{}) - assert.Equal(t, &PushNotificationResponse{}, m.Send(&PushNotification{})) -} -- cgit v1.2.3-1-g7c22