Skip to content

Commit

Permalink
Modified test for invalid URLs on Link to use FollowAlert instead of …
Browse files Browse the repository at this point in the history
…Follow() for better coverage
  • Loading branch information
mark-adams committed Aug 17, 2015
1 parent a72cc48 commit 1257d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cap/atom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 \"\"",
Expand Down

0 comments on commit 1257d68

Please sign in to comment.