From 1257d682736c03449bf87874fcf923c15a1b1e50 Mon Sep 17 00:00:00 2001 From: Mark Adams Date: Sun, 16 Aug 2015 22:30:17 -0500 Subject: [PATCH] Modified test for invalid URLs on Link to use FollowAlert instead of Follow() for better coverage --- cap/atom_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cap/atom_test.go b/cap/atom_test.go index 6fde971..66dbe5d 100644 --- a/cap/atom_test.go +++ b/cap/atom_test.go @@ -238,10 +238,10 @@ func TestNWSAtomGeocodeGetValuesReturnsEmptyArrIfNotFound(t *testing.T) { assertEqual(t, len(found), 0, "No items should be found") } -func TestLinkFollowReturnsErrorForInvalidURL(t *testing.T) { +func TestLinkFollowAlertReturnsErrorForInvalidURL(t *testing.T) { link := Link{Href: "abcdef"} - _, err := link.Follow() + _, err := link.FollowAlert() assertEqual(t, "Get abcdef: unsupported protocol scheme \"\"",